Below Steps show how to disable IPTABLES ( Firewall ) in Linux
Table: mangle
Chain PREROUTING (policy ACCEPT 1169 packets, 809K bytes)
num pkts bytes target prot opt in out source destination
........
........
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
Restart the System
After Restart ( Check there is no rules )
[root@center ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT 126 packets, 21125 bytes)
num pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 86 packets, 10809 bytes)
num pkts bytes target prot opt in out source destination
Check IPTABLES are running
[root@xyz ~]# service iptables statusTable: mangle
Chain PREROUTING (policy ACCEPT 1169 packets, 809K bytes)
num pkts bytes target prot opt in out source destination
........
........
Stop IPtables Temporary
[root@xyz ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
Stop IPtables Permanently
[root@xyz ~]# chkconfig iptables offRestart the System
After Restart ( Check there is no rules )
[root@center ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT 126 packets, 21125 bytes)
num pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 86 packets, 10809 bytes)
num pkts bytes target prot opt in out source destination
0 comments:
Post a Comment