Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Route replies from the WG interface itself into table 200
- PostUp = ip rule add from 10.66.66.3 table 200 priority 200
- PostDown = ip rule del from 10.66.66.3 table 200 priority 200
- # Route ONLY the Docker subnet traffic into table 200
- PostUp = ip rule add from 172.20.0.0/24 table 200 priority 150
- PostDown = ip rule del from 172.20.0.0/24 table 200 priority 150
- # Enable MASQUERADE so the VPS sees the traffic coming from 10.66.66.3
- PostUp = iptables -t nat -A POSTROUTING -s 172.20.0.0/24 -o %i -j MASQUERADE
- PostDown = iptables -t nat -D POSTROUTING -s 172.20.0.0/24 -o %i -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment