Viewing the effective iptables rules
You can check the status of the iptables program, and view the iptables rules currently being enforced on your machine from a terminal window command line.
Note Root privileges is required for the iptables commands. In this document, examples show the use of sudo. |
Checking the iptables service
The following commands are used to determine the running state of iptables.
Platform | Command |
---|---|
RHEL and Fedora | sudo /sbin/service iptables status |
OCDC | sudo /etc/init.d/iptables status |
Viewing the current iptables rules
The following commands will display the currently effective firewall rules in the terminal window.
Platform | Command |
---|---|
RHEL and Fedora | sudo /sbin/service iptables -L |
OCDC | sudo iptables -L |
0 comments
Post a Comment