Advertisement
Guest User

Untitled

a guest
Jan 7th, 2025
31
0
27 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Server
  2. [Interface]
  3. PrivateKey = redacted
  4. Address = 10.29.0.1/24
  5. ListenPort = redacted
  6. PreUp =
  7. PostUp =  iptables -t nat -A POSTROUTING -s 10.29.0.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport redacted -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
  8. PreDown =
  9. PostDown =  iptables -t nat -D POSTROUTING -s 10.29.0.0/24 -o eth0 -j MASQUERADE; iptables -D INPUT -p udp -m udp --dport redacted -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT;
  10.  
  11.  
  12. # Client: b
  13. [Peer]
  14. PublicKey = redacted
  15. PresharedKey = redacted
  16. AllowedIPs = 10.29.0.2/32
  17.  
  18. # Client: c
  19. [Peer]
  20. PublicKey = redacted
  21. PresharedKey = redacted
  22. AllowedIPs = 10.29.0.3/32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement