How to flush iptables in debian
Posted by hack3rb43
วิธีง่ายๆครับ โดยสร้าง shell script ขึ้นมา
#nano /etc/init.d/fw.stop
จากนั้นก็ใส่ shell ลงไป
#!/bin/sh
echo “Stopping firewall and allowing everyone…”
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 FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Save แล้วก็ chmod มัน
#chmod 755 /etc/init.d/fw.stop
run ได้เลย ตัว Iptable จะลบ rule ทั้งหมด
source
http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html
Leave a Reply