mirror of
https://github.com/pirate/wireguard-docs.git
synced 2025-11-04 20:06:17 +00:00
Merge pull request #97 from lvaroqui/fix-internet-browsing-vpn-forward-rule
Fix internet browsing vpn example forward rule
This commit is contained in:
@@ -14,4 +14,5 @@ sysctl -p /etc/sysctl.conf
|
|||||||
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||||
iptables -A FORWARD -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 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
|
iptables -t nat -A POSTROUTING -s 10.0.44.0/24 -o eth0 -j MASQUERADE
|
||||||
|
|||||||
Reference in New Issue
Block a user