Getting started with NFTables - long way to go
This commit is contained in:
14
services/firewall/reset-firewall.sh
Normal file
14
services/firewall/reset-firewall.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
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
|
||||
|
||||
# Wireguard
|
||||
# iptables -A FORWARD -i wg0 -j ACCEPT
|
||||
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
Reference in New Issue
Block a user