SuSe firewall iptables configuration

Source: Internet
Author: User
Go to the/etc/sysconfig/directory and run the vi command to edit the SuSEfirewall2 file.-& gt; # viSuSEfirewall2: find FW_SERVICES_EXT_TCP in the file, add the service name or port corresponding to the service, such as SSH, FW_SE... go to the/etc/sysconfig/directory and run the vi command to edit the SuSEfirewall2 file.-> # vi SuSEfirewall2: find FW_SERVICES_EXT_TCP in the file, add a service name or port corresponding to the service, for example, SSH, FW_SERVICES_EXT_TCP = "ssh" or FW_SERVICES_EXT_TCP = "22". Separate multiple ports with spaces; save www.2cto.com and exit. Ii. restart the firewall for the configuration to take effect.-> # rcSuSEfirewall2 restart [if you still cannot access ssh or telnet port 22, next, proceed to the following steps: # chkconfig SuSEfirewall2_setup off # The system does not load firewall rules by default at startup # iptables-t filter-I input_ext-p tcp-dport 22-j ACCEPT # add an sshd access rule www.2cto.com # iptables-save>/root/iptables. save # save the new iptables rule # vi/etc/init. d/boot. localiptables-restore/root/iptables. save # Add a command to enable automatic recovery at system startup
Previously saved firewall rules .... In this way, OK
 
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.