By default, RH9 may cause an iptables to block all ports so that telnet and ssh do not come in from the outside. The simple configuration method is the vi/etc/sysconfig/iptables file, in which find such a line:-ARH-Lokkit-0-50-INPUT-ptcp-mtcp -- dport0: 1023 -- syn-jREJECT Add the following two lines before this line:-ARH-Lokkit-0
By default, RH9 may cause an iptables to block all ports so that telnet and ssh do not come in from the outside.
The simple configuration method is the vi/etc/sysconfig/iptables file. Find this line in it:
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport -- syn-j REJECT
Add the following two rows before this row:
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 20:23 -- syn-j ACCEPT
-A RH-Lokkit-0-50-INPUT-p tcp-m tcp -- dport 80 -- syn-j ACCEPT
After saving the file, run the following command in the/etc/init. d directory:
./Iptables restart
Success!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service