Fedora system iptables firewall and seLinux configuration method

Source: Internet
Author: User
Disabling the firewall from the configuration menu does not work. simply do not install the firewall during installation to view the firewall status:/etc/init. d/iptablesstatus temporarily disable the firewall:/etc/init. d/iptablesstop disable firewall startup/sbin/chkconfig -- level2345iptablesoff restart iptables when the system is started:/disable firewall from the configuration menu, so do not install firewall during installation.
View the firewall status:
/Etc/init. d/ IptablesStatus
Temporarily disable the firewall:
/Etc/init. d/iptables stop
Disable firewall from starting when the system starts
/Sbin/chkconfig -- level 2345 iptables off
Restart iptables:
/Etc/init. d/iptables restart
Digress:
You don't need to shut down the firewall when the BT or scorpion is slow. you just need to open the corresponding port.
In the file
/Etc/sysconfig/iptables
Add a line like this in the RH-Firewall-1-INPUT rule chain originally configured:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dportept 64-j ACCEPT
-A RH-Firewall-1-INPUT-m state -- state NEW-m udp-p udp -- dportept 64-j ACCEPT
If the original-j REJECT statements are found, the above two statements should be placed before them.

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.