14 lines
300 B
Bash
14 lines
300 B
Bash
#!/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 |