Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the vps wireguard config:
- ```
- [Interface]
- Address = 10.0.0.1/24
- ListenPort = 51820
- PrivateKey = ##########################################
- 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
- PostDown = nft delete table ip wireguard; nft delete table ip6 wireguard
- [Peer]
- # laptop public key
- PublicKey = #####################################
- # VPN client's IP address in the VPN
- AllowedIPs = 10.0.0.2/32
- [Peer]
- # qbitorrent public key
- PublicKey = #########################################
- # VPN client's IP address in the VPN
- AllowedIPs = 10.0.0.3/32
- ```
- qbittorents config:
- ```
- [Interface]
- # The address your computer will use on the VPN
- Address = 10.0.0.3/32
- PrivateKey = YGzViTfjeGKdFTtamiRsCuLw7KkZ6aCk5rnHR1A3h00=
- [Peer]
- # VPN server's wireguard public key
- PublicKey = uCBLZ7PTFOEW36LPJfKDzAZPjdn82C75i0MqS3mnGwU=
- # Public IP address of your VPN server (USE YOURS!)
- Endpoint = oc-wg-ddns.duckdns.org:51820
- # 10.0.0.0/24 is the VPN subnet
- AllowedIPs = 0.0.0.0/0
- # PersistentKeepalive = 25
- ```
Add Comment
Please, Sign In to add comment