How does telnet get through the windows firewall?

Telnet is a remote login protocol that allows a user to log into a remote computer using a terminal emulation program. It is an old, but still widely used protocol, and is an important tool for system administrators to be able to access remote computers.

However, by default, Windows Firewall blocks incoming Telnet connections. To get around this, you need to manually configure Windows Firewall to allow Telnet connections.

There are two main ways to do this. First, you can open the Windows Firewall settings and manually add an inbound rule to allow Telnet connections. To do this, open the Windows Firewall settings (Start > Control Panel > System and Security > Windows Firewall), select Advanced settings on the left, and then select Inbound Rules on the left. Then, click New Rule in the Actions pane on the right. Select the Port radio button and click Next. On the next page, select TCP as the protocol and enter the port number for Telnet (23).

On the next page, you can select either Allow the connection or Allow the connection if it is secure. The Allow the connection option will allow any incoming Telnet connection, while the Allow the connection if it is secure option will only allow incoming Telnet connections that are authenticated with a valid username and password. Select the appropriate option and click Next.

On the next page, select the networks that this rule should apply to. If you want to allow incoming Telnet connections from any network, select Anywhere. Otherwise, you can select either Home/Work or Public networks, depending on the type of networks you want the rule to apply to. Finally, click Finish.

The second way to configure Windows Firewall to allow incoming Telnet connections is to use the netsh command. This command is a bit more complicated than the above method, but it allows you to easily add multiple rules in one go. To use the netsh command, open a command prompt as an administrator and type the following command:

netsh advfirewall firewall add rule name=\Allow Telnet\ protocol=TCP dir=in localport=23 action=allow

This command will add an inbound rule to Windows Firewall that will allow incoming Telnet connections on port 23. You can add additional rules to allow other ports, as well as to allow incoming connections from specific IP addresses or networks.

Once you have added the appropriate rules, Telnet connections should be allowed through Windows Firewall. However, it is important to remember that allowing incoming Telnet connections can be a security risk, so make sure you understand the risks before enabling this setting.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo