Dialgatrainer069

wireguard configs

May 2nd, 2024
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. the vps wireguard config:
  2. ```
  3. [Interface]
  4. Address = 10.0.0.1/24
  5. ListenPort = 51820
  6. PrivateKey = ##########################################
  7.  
  8. PostUp = nft add table ip wireguard; nft add chain ip wireguard wireguard_chain {type nat hook postrouting priority srcnat\; policy accept\;}; nft add rule ip wireguard wireguard_chain counter packets 0 bytes 0 masquerade; nft add table ip6 wireguard; nft add chain ip6 wireguard wireguard_chain {type nat hook postrouting priority srcnat\; policy accept\;}; nft add rule ip6 wireguard wireguard_chain counter packets 0 bytes 0 masquerade
  9. PostDown = nft delete table ip wireguard; nft delete table ip6 wireguard
  10.  
  11.  
  12. [Peer]
  13. # laptop public key
  14. PublicKey = #####################################
  15. # VPN client's IP address in the VPN
  16. AllowedIPs = 10.0.0.2/32
  17.  
  18. [Peer]
  19. # qbitorrent public key
  20. PublicKey = #########################################
  21. # VPN client's IP address in the VPN
  22. AllowedIPs = 10.0.0.3/32
  23. ```
  24.  
  25. qbittorents config:
  26. ```
  27. [Interface]
  28. # The address your computer will use on the VPN
  29. Address = 10.0.0.3/32
  30. PrivateKey = YGzViTfjeGKdFTtamiRsCuLw7KkZ6aCk5rnHR1A3h00=
  31.  
  32. [Peer]
  33. # VPN server's wireguard public key
  34. PublicKey = uCBLZ7PTFOEW36LPJfKDzAZPjdn82C75i0MqS3mnGwU=
  35. # Public IP address of your VPN server (USE YOURS!)
  36. Endpoint = oc-wg-ddns.duckdns.org:51820
  37. # 10.0.0.0/24 is the VPN subnet
  38. AllowedIPs = 0.0.0.0/0
  39. # PersistentKeepalive = 25
  40. ```
Add Comment
Please, Sign In to add comment