1
iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -A OUTPUT -o tun+ -j ACCEPT
- arashmilani.com/post?id=53
- archive.is/eLFDb
- web.archive.org/web/20240719025256/https://arashmilani.com/post?id=53
2
How to apply iptables changes on Debian 12?
3
apt install iptables-persistent
Answer «No» to «Save current IPv4 rules?».
4
Create /etc/iptables/rules.v4 with the rules of point 1:
5
netfilter-persistent reload