Advertisement
Guest User

Untitled

a guest
Jan 21st, 2024
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | Source Code | 0 0
  1. ################################################################
  2. #################### Interface / Server ########################
  3. ################################################################
  4. [Interface]
  5. Address = 10.13.13.1
  6. ListenPort = 51820
  7. PrivateKey = <PrivateKey>=
  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. # peer1
  13. PublicKey = #<PublicKey1>
  14. PresharedKey = #<PresharedKey1>
  15. AllowedIPs = 10.13.13.2/32 #choose your IP from the interface base
  16.  
  17. [Peer]
  18. # peer2
  19. PublicKey = #<PublicKey2>
  20. PresharedKey = #<PresharedKey2>
  21. AllowedIPs = 10.13.13.3/32 #choose your IP from the interface base
  22. ################################################################
  23. ################################################################
  24. ################################################################
  25.  
  26.  
  27. ################################################################################################################################
  28. ################################################################################################################################
  29. ################################################################################################################################
  30.  
  31.  
  32. ################################################################
  33. ############################ Peer 1 ############################
  34. ################################################################
  35. [Interface]
  36. Address = 10.13.13.2
  37. PrivateKey = #<PrivateKey>
  38. ListenPort = 51820
  39. DNS = 10.0.0.4 #my internal DNS (on the server's LAN)
  40.  
  41. [Peer]
  42. PublicKey = #<PublicKey>
  43. PresharedKey = #<PresharedKey1>
  44. Endpoint = #<PublicIP>:51820
  45. AllowedIPs = 0.0.0.0/0
  46. ################################################################
  47. ################################################################
  48. ################################################################
Tags: wireguard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement