Task: Disable firewall
Type the following command as the root user to disable firewall for IPv4:
# service iptables save
# service iptables stop
# chkconfig iptables off
Sample output with verification (see below):
Type the following command as the root user to disable firewall for IPv6 :
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off
Task: Enable firewall
Type the following command as the root user to enable firewall for IPv4:
Sample outputs:
# service iptables start
# chkconfig iptables on
Sample outputs:
iptables: Applying firewall rules: [ OK ]
Type the following command as the root user to disable firewall for IPv6 :
# service ip6tables start
# chkconfig ip6tables on
Task: Verify that firewall is disabled
Type the following command as root user to see IPv4 firewall rules:
# /sbin/iptables -L -v -n
OR# service iptables status
Type the following command as root user to see IPv6 firewall rules:
OR
# /sbin/ip6tables -L -v -n
OR
# service ip6tables status
No comments:
Post a Comment