Menghapus Semua Rules IPTables

Untuk menghapus Rules IPTables silahkan gunakan perintah berikut:

root@system:/# iptables -F
root@system:/# iptables -X
root@system:/# iptables -t nat -F
root@system:/# iptables -t nat -X
root@system:/# iptables -t mangle -F
root@system:/# iptables -t mangle -X
root@system:/# iptables -P INPUT ACCEPT
root@system:/# iptables -P FORWARD ACCEPT
root@system:/# iptables -P OUTPUT ACCEPT
root@system:/# iptables -ln
flush iptables

Kemudian periksa lagi rules IPTables apakah sudah terhapus atau belum dengan sintax

root@system:/# iptables -Ln
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Screenshot is on featured image
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

*