& Nbsp; when the firewall is enabled for Linux, you will find that it is okay to log on to Port 23 from the local machine, but if you log on to the linux system from another pc, you will find the following error: the connection to the host cannot be opened. Port 23: The connection fails because the linux firewall disables port 23 by default. if
When the firewall is enabled for Linux, you will find that it is okay to log on to Port 23 from the local machine. However, if you log on to the linux system from another pc, you will find the following error:
The connection to the host cannot be opened. in port 23, the connection fails.
Because the linux firewall disables port 23 by default. if remote logon is allowed, you can disable the firewall or open the firewall to open port 23, as shown below:
Takes effect immediately and becomes invalid after restart
Enable: service iptables start
Disable: service iptables stop
Effective after restart
Enable: chkconfig iptables on
Close: chkconfig iptables off
When the firewall is enabled, make the following settings to enable the relevant Port
Modify the/etc/sysconfig/iptables file and add the following content:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 23-j ACCEPT