We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
server [Interface] Address = 10.0.0.1/24 ListenPort = 51820 PrivateKey = MG/XyO54Dd8s26CGjSKbK4t9iJVV3P4b8qjQjrkviFw= PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer] PublicKey = rPEiKMb74ILIjzRFsA0Nu7pLq2DGZY+9FXfXfBLbljE= AllowedIPs = 10.0.0.2/32
[Peer] PublicKey = 2iEbpNnc+5BfW/PuhtcDpeQrvHfscVCMOsCcz2KFgRE= AllowedIPs = 10.0.0.3/32
[Peer] PublicKey = d/DPusWd+KksqrM8jvOOryl0Jbrm/A8Hr396uQgTjEY= AllowedIPs = 10.0.0.4/32
client1 [Interface] Address = 10.0.0.2/24 ListenPort = 51820 PrivateKey = mAStNxF30pAEN+5Uf6OlE+1RDE/Vg/rj0cRkYMusNHE=
[Peer] PublicKey = OBINvdtAY4aQtlgR3nXPWq0fl/rBl2KWMLJgk5NlzVA= AllowedIPs = 0.0.0.0/0, ::/0 Endpoint = myserver.dyndns.org:51820
client2 [Interface] Address = 10.0.0.3/24 ListenPort = 51820 PrivateKey = aG/zLmr1mRh7GxsvUCoHQskujRugUmQCZo5rDCt9KVI=
client3 [Interface] Address = 10.0.0.4/24 ListenPort = 51820 PrivateKey = SNXw4hQAY1Ni3t3mte5kSo4yUsQeE2J4wZQlPyJyuX0=
除了翻墙,还有wireguard打洞的需求。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
server
[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = MG/XyO54Dd8s26CGjSKbK4t9iJVV3P4b8qjQjrkviFw=
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
PublicKey = rPEiKMb74ILIjzRFsA0Nu7pLq2DGZY+9FXfXfBLbljE=
AllowedIPs = 10.0.0.2/32
[Peer]
PublicKey = 2iEbpNnc+5BfW/PuhtcDpeQrvHfscVCMOsCcz2KFgRE=
AllowedIPs = 10.0.0.3/32
[Peer]
PublicKey = d/DPusWd+KksqrM8jvOOryl0Jbrm/A8Hr396uQgTjEY=
AllowedIPs = 10.0.0.4/32
client1
[Interface]
Address = 10.0.0.2/24
ListenPort = 51820
PrivateKey = mAStNxF30pAEN+5Uf6OlE+1RDE/Vg/rj0cRkYMusNHE=
[Peer]
PublicKey = OBINvdtAY4aQtlgR3nXPWq0fl/rBl2KWMLJgk5NlzVA=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = myserver.dyndns.org:51820
client2
[Interface]
Address = 10.0.0.3/24
ListenPort = 51820
PrivateKey = aG/zLmr1mRh7GxsvUCoHQskujRugUmQCZo5rDCt9KVI=
[Peer]
PublicKey = OBINvdtAY4aQtlgR3nXPWq0fl/rBl2KWMLJgk5NlzVA=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = myserver.dyndns.org:51820
client3
[Interface]
Address = 10.0.0.4/24
ListenPort = 51820
PrivateKey = SNXw4hQAY1Ni3t3mte5kSo4yUsQeE2J4wZQlPyJyuX0=
[Peer]
PublicKey = OBINvdtAY4aQtlgR3nXPWq0fl/rBl2KWMLJgk5NlzVA=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = myserver.dyndns.org:51820
除了翻墙,还有wireguard打洞的需求。
The text was updated successfully, but these errors were encountered: