Skip to content
New issue

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

sing-box支持wireguard,link能否支持呢? #44

Open
jackadam1981 opened this issue Oct 1, 2024 · 0 comments
Open

sing-box支持wireguard,link能否支持呢? #44

jackadam1981 opened this issue Oct 1, 2024 · 0 comments

Comments

@jackadam1981
Copy link

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打洞的需求。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant