Wednesday 19 September 2012

Disable or Turnoff IPTables ( Firewall ) in Linux

Below Steps show how to disable IPTABLES ( Firewall ) in Linux

Check IPTABLES are running
[root@xyz ~]# service iptables status
Table: 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 stop
iptables: Flushing firewall rules:          [  OK  ]
iptables: Setting chains to policy ACCEPT: filter [  OK  ]
iptables: Unloading modules: [  OK  ]


Stop IPtables Permanently
[root@xyz ~]# chkconfig iptables off
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



Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.