Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ansible made wireguard configs
- oracle cloud vps
- sudo cat /etc/wireguard/wg0.conf
- # Ansible managed
- [Interface]
- # wireguard-oci
- Address = 10.50.0.1/32
- PrivateKey = ######################################
- ListenPort = 51820
- PostUp = nft add table inet wireguard; nft add chain inet wireguard wireguard_chain {type nat hook postrouting priority srcnat\; policy accept\;}; nft add rule inet wireguard wireguard_chain counter packets 0 bytes 0 masquerade;
- PostDown = nft delete table inet wireguard;
- [Peer]
- # Name = wireguard-home
- PublicKey = ############################################
- AllowedIPs = 10.50.0.2/32
- Endpoint = 5.65.187.97:51821
- [Peer]
- # Name = arrstack1
- PublicKey = ###########################################
- AllowedIPs = 10.50.0.3/32
- Endpoint = 5.65.187.97:51820
- arrstack1 lxc on home network behind nat
- sudo cat /etc/wireguard/wg0.conf
- # Ansible managed
- [Interface]
- # arrstack1
- Address = 10.50.0.3/32
- PrivateKey = #############################################
- ListenPort = 51820
- [Peer]
- # Name = wireguard-oci
- PublicKey = #################################################
- AllowedIPs = 10.50.0.1/32
- PersistentKeepalive = 30
- Endpoint = 141.147.70.25:51820
- [Peer]
- # Name = wireguard-home
- PublicKey = ################################################
- AllowedIPs = 10.50.0.2/32
- Endpoint = 5.65.187.97:51821
- wireguard-home on home network
- # Ansible managed
- [Interface]
- # wireguard-home
- Address = 10.50.0.2/32
- PrivateKey = ##############################################
- ListenPort = 51821
- [Peer]
- # Name = wireguard-oci
- PublicKey = ##############################################
- AllowedIPs = 10.50.0.1/32
- PersistentKeepalive = 30
- Endpoint = 141.147.70.25:51821
- [Peer]
- # Name = arrstack1
- PublicKey = ###############################################
- AllowedIPs = 10.50.0.3/32
- Endpoint = 5.65.187.97:51821
- homemade mostly working wireguard configs
- wg0- oracle vps equivalent
- [Interface]
- PrivateKey = mJaaX6RUvb2p20vEOAUEcGtSd+c8ilgq6YSL5QEKzUs=
- Address = 10.50.0.1/32
- ListenPort = 51820
- PostUp = nft add table inet wireguard; nft add chain inet wireguard wireguard_chain {typ
- e nat hook postrouting priority srcnat\; policy accept\;}; nft add rule inet wireguard w
- ireguard_chain counter packets 0 bytes 0 masquerade;
- PostDown = nft delete table inet wireguard;
- #wg1
- [Peer]
- PublicKey = B5XhmeMxZGps7gP0ld75IQjX8pGrEyw8cNVUx46yC1Q=
- Endpoint = 192.168.0.202:51821
- AllowedIPs = 10.50.0.2/32
- #wg2
- [Peer]
- PublicKey = s7chyyTKzBn+ubG1ggeh3yiP0s2DCDFzf0eBShsadlA=
- Endpoint = 192.168.0.202:51820
- AllowedIPs = 10.50.0.3/32
- wg1 aka arrstack in ansible
- [Interface]
- PrivateKey = mMTO5hzyGzjVwe5XCIeZXxAR8emKwCaVx32YNx0QD2Q=
- Address = 10.50.0.2/32
- ListenPort = 51821
- # wg0 peer
- [Peer]
- PublicKey = /XN9/yZHW7kJXCTYqyO6Hj5yKyUdEsAOWDv3EORd7kU=
- Endpoint = 192.168.0.200:51820
- AllowedIPs = 10.50.0.1/32
- #wg2
- [Peer]
- PublicKey = s7chyyTKzBn+ubG1ggeh3yiP0s2DCDFzf0eBShsadlA=
- Endpoint = 192.168.0.202:51820
- AllowedIPs = 10.50.0.3/32
- wg2 aka wireguard-home
- [Interface]
- PrivateKey = YNctXt05w8V1ZKmeI+oEvgyJLe/UhjSOw67v30Kmkko=
- Address = 10.50.0.3/32
- ListenPort = 51820
- #wg0
- [Peer]
- PublicKey = /XN9/yZHW7kJXCTYqyO6Hj5yKyUdEsAOWDv3EORd7kU=
- Endpoint = 192.168.0.200:51820
- AllowedIPs = 10.50.0.1/32
- PersistentKeepalive = 25
- #wg1
- [Peer]
- PublicKey = B5XhmeMxZGps7gP0ld75IQjX8pGrEyw8cNVUx46yC1Q=
- Endpoint = 192.168.0.202:51821
- AllowedIPs = 10.50.0.2/32
- PersistentKeepalive = 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement