NoPaste

wg0.conf Konfiguration

von hawkeye78

SNIPPET_TEXT:
  1. Server
  2. ====
  3.  
  4. [Interface]
  5. Address = 10.13.13.1
  6. ListenPort = 51820
  7. PrivateKey = qGGNJsdVxDtMC5psODZ+UXeDvNDwUFYrMujyuaQvfmQ=
  8. PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
  9. PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
  10.  
  11. [Peer]
  12. # peer_webclient
  13. PublicKey = vVGqngsN47XMhU0XQ+EmqW+5IXK0cNMXB0txfXJAugM=
  14. PresharedKey = gwoMEslIlM9dRmKTN34qSAyxArG0GhJBWCLekiXgudI=
  15. AllowedIPs = 10.13.13.2/32
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. Client
  23. ====
  24.  
  25.  
  26. [Peer]
  27. # peer_webclient
  28. PublicKey = vVGqngsN47XMhU0XQ+EmqW+5IXK0cNMXB0txfXJAugM=
  29. PresharedKey = gwoMEslIlM9dRmKTN34qSAyxArG0GhJBWCLekiXgudI=
  30. AllowedIPs = 10.13.13.2/32
  31. Endpoint = webserver.example.com:51820

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN