vx3r / wg-gen-web

Simple Web based configuration generator for WireGuard
https://wg-gen-web-demo.127-0-0-1.fr
Do What The F*ck You Want To Public License
1.6k stars 192 forks source link

is it able to setup AllowedIPs server side only #104

Closed xxxsen closed 2 years ago

xxxsen commented 2 years ago

In my use scene, there are the following networks

I want to access the machines in the network B from machine which in network A. By configuring A/B peer config in wg0.conf of server C like these manually, it works, the wireguard server can forward traffic correctly.

//Peer A
[Peer]
AllowedIPs = 10.0.0.2/32, 192.168.100.0/24

//Peer B
[Peer]
AllowedIPs = 10.0.0.3/32, 192.168.200.0/24

but through wg-gen-web, it seems that I can't do the above configuration. When I add 192.168.100.0/24 to A's configuration, I only modify the configuration of A's client file, and the wg0.conf from server side will not add the corresponding sub network.