I am using CentOS6.8 Xiaoniao Cloud Server. Because the ssh remote connection port has been modified, port number 22 has been changed to port number 33. I would like to know how to release the new port on iptables.
Check the status: iptables -L -n Add the method of opening specific ports below: use iptables to open the following ports /sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT to save /etc/rc.d/ init.d/iptables save restart service service iptables restart to check whether the port that needs to be opened takes effect? /etc/init.d/iptables status For more information, please refer to: https://www.niaoyun.com/docs/15895.html/?utm_source=phpl-1227
Check the status: iptables -L -n Add the method of opening specific ports below: use iptables to open the following ports /sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT to save /etc/rc.d/ init.d/iptables save restart service service iptables restart to check whether the port that needs to be opened takes effect? /etc/init.d/iptables status For more information, please refer to: https://www.niaoyun.com/docs/15895.html/?utm_source=phpl-1227