Posted March 23, 201410 yr Hi all, Debian 7.3 64bit Is there an easier way to stop/start the default iptables? (I haven't added any rules other than the default) On searching I found; HowTo Disable The Iptables Firewall in Linux HowTo Disable The Iptables Firewall in Linux RE: A note about other Linux distribution Code: If you are using other Linux distribution such as Debian / Ubuntu / Suse / Slakcware Linux etc., try the following generic proc 1) First, run # iptables-save > /root/firewall.rules 2) Then run following commands as root Code: iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT Or create shell script as advised to stop iptables. 3) To restore or turn on firewall type the following command: # iptables-restore < /root/firewall.rules Advice would be appreciated. Thanks. Rgds satimis Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.