vps/wg-easy/config/wg0.conf

40 lines
2.0 KiB
Plaintext
Raw Normal View History

2026-05-22 09:23:27 +00:00
# Note: Do not edit this file directly.
# Your changes will be overwritten!
# Server
[Interface]
PrivateKey = EHMSZLuis/jEpPsG/TDYZQKQ54NC9bVdsfrvsuvYPUA=
Address = 11.2.2.1/24, fdcc:ad94:bacf:61a4::cafe:1/112
ListenPort = 30351
MTU = 1420
PreUp =
PostUp = iptables -t nat -A POSTROUTING -s 11.2.2.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 30351 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -s fdcc:ad94:bacf:61a4::cafe:0/112 -o eth0 -j MASQUERADE; ip6tables -A INPUT -p udp -m udp --dport 30351 -j ACCEPT; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -A FORWARD -o wg0 -j ACCEPT;
PreDown =
PostDown = iptables -t nat -D POSTROUTING -s 11.2.2.0/24 -o eth0 -j MASQUERADE; iptables -D INPUT -p udp -m udp --dport 30351 -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -s fdcc:ad94:bacf:61a4::cafe:0/112 -o eth0 -j MASQUERADE; ip6tables -D INPUT -p udp -m udp --dport 30351 -j ACCEPT; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -D FORWARD -o wg0 -j ACCEPT;
# Client: pycm1k_mob (2)
[Peer]
PublicKey = MWg1eoLgk33nISm+wdNq0VqDgcjwm0Ca67fVMmXJ5B4=
PresharedKey = 7mHaccI99dTOTadsE16JtDYBiALe7OEEColhjwD3UVc=
AllowedIPs = 11.2.2.2/32, fdcc:ad94:bacf:61a4::cafe:2/128
# Client: Guz_mob (3)
[Peer]
PublicKey = TH82PnmFEvhll2+Q7khacquBcjFp4hDez5xJOIGqfgE=
PresharedKey = rUO4yWosBVw6NLaOVwl3KmBmI5NiN4oYrFgj2xeslvk=
AllowedIPs = 11.2.2.3/32, fdcc:ad94:bacf:61a4::cafe:3/128
# Client: RT (4)
[Peer]
PublicKey = vj5BUw8SSLSZzIgMVQ3yz1yBKUO2ALb13iQWRJoKHSs=
PresharedKey = 7bupfK6uW4KGIQ3/MnRkliQwfNSM32sHPzgaSEDio3o=
AllowedIPs = 11.2.2.4/32, fdcc:ad94:bacf:61a4::cafe:4/128, 192.168.30.0/24, 11.2.2.4/32
# Client: vm_mts (5)
[Peer]
PublicKey = ggg+wnwD4roCBRePtXeTSqtu16PPKb7w8RWyY8aOIRg=
PresharedKey = i6ATEWiKSIHTBi+8ecxk9BLuA0G4W955roZCeVdP3v4=
AllowedIPs = 11.2.2.5/32, fdcc:ad94:bacf:61a4::cafe:5/128, 11.200.0.0/24, 11.1.1.0/24