luxaminokus

Untitled

Feb 25th, 2026
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2.  
  3. # Route replies from the WG interface itself into table 200
  4. PostUp = ip rule add from 10.66.66.3 table 200 priority 200
  5. PostDown = ip rule del from 10.66.66.3 table 200 priority 200
  6.  
  7. # Route ONLY the Docker subnet traffic into table 200
  8. PostUp = ip rule add from 172.20.0.0/24 table 200 priority 150
  9. PostDown = ip rule del from 172.20.0.0/24 table 200 priority 150
  10.  
  11. # Enable MASQUERADE so the VPS sees the traffic coming from 10.66.66.3
  12. PostUp = iptables -t nat -A POSTROUTING -s 172.20.0.0/24 -o %i -j MASQUERADE
  13. 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