mirror of
https://github.com/pirate/wireguard-docs.git
synced 2026-01-22 18:06:15 +00:00
fix internet browsing vpn example forward rule
This commit is contained in:
parent
5e34b97c8a
commit
cc1704589e
1 changed files with 1 additions and 0 deletions
|
|
@ -14,4 +14,5 @@ sysctl -p /etc/sysctl.conf
|
|||
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
iptables -A FORWARD -i wg0 -o wg0 -m conntrack --ctstate NEW -j ACCEPT
|
||||
iptables -A FORWARD -i wg0 -o eth0 -m conntrack --ctstate NEW -j ACCEPT
|
||||
iptables -t nat -A POSTROUTING -s 10.0.44.0/24 -o eth0 -j MASQUERADE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue