Fedora firewall settings

Start firewall

1) entered into force after the restart
open: chkconfig iptables on
close: chkconfig iptables off or / sbin / chkconfig iptables 2345 --level OFF

2) with immediate effect, after the restart failure

service way
open: service iptables start
shut down: service iptables stop

iptables way

Check firewall status:
/etc/init.d/iptables Status

Temporarily turn off the firewall:
/etc/init.d/iptables STOP

Restart iptables:
/etc/init.d/iptables restart


It should be noted that for other services under Linux can be performed using the above command to open and close operations.

When the firewall is turned on, make the following settings, open the relevant port.

Modify / etc / sysconfig / iptables file, add the following:

-A. 1-RH-Firewall-State --state the INPUT NEW -m -m -p TCP TCP 80 --dport -j ACCEPT

-A RH-Firewall-l- INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

view all processes, including services, where ps -aux command in redhat which is netconfig NIC configuration tool under the character-based interface.

chkconfig --list

can list sysV xinet and services in each runlevel default startup state.

service service name parameter

parameter to view the status of a stat like it.

Since the launch of the service

ntsysv

Reproduced in: https: //www.cnblogs.com/parrynee/archive/2010/01/18/1650810.html

Guess you like

Origin blog.csdn.net/weixin_33717298/article/details/93447464