Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cd /etc/wireguard
- # ls -l wg0.conf
- -rw------- 1 root root 713 Sep 23 17:33 wg0.conf
- # cat wg0.conf
- [Interface]
- Address = 10.23.5.1/24, fc00:23:5::1/64
- ListenPort = 1500
- PrivateKey = mNt0Gx2Af/OCkT9FchX3nybsaXUAerglnuMnSud4z1k=
- PreUp = iptables -t nat -A POSTROUTING -s 10.23.5.0/24 -o enxb827eb7dc89a -j MASQUERADE; ip6tables -t nat -A POSTROUTING -s fc00:23:5::/64 -o enxb827eb7dc89a -j MASQUERADE
- PostDown = iptables -t nat -D POSTROUTING -s 10.23.5.0/24 -o enxb827eb7dc89a -j MASQUERADE; ip6tables -t nat -D POSTROUTING -s fc00:23:5::/64 -o enxb827eb7dc89a -j MASQUERADE
- # Notebook
- [Peer]
- PublicKey = UGyBshzPfAH0U4QAgGJHe07LfUz4RcHA9PhUlUC4cCA=
- AllowedIPs = 10.23.5.2/32, fc00:23:5::2/128
- # Mobile
- [Peer]
- PublicKey = 1xy8XRtUQT/9AwYWlEXsWCezNjfiFjXaBy40UUtAWBo=
- AllowedIPs = 10.23.5.3/32, fc00:23:5::3/128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement