User Tools

Site Tools


ubuntu:iptables:reset

Ubuntu - IPTables - Reset

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

NOTE: The ACCEPT in the last 3 commands allows any traffic (inbound, outbound, forward).

  • To make it more secure, these could be changed to DENY.
ubuntu/iptables/reset.txt · Last modified: 2021/06/29 18:53 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki