naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/
MIT License
673 stars 33 forks source link

automatic adding of routes when additional networks are specified #21

Open naggie opened 3 years ago

naggie commented 3 years ago

Currently adding extra routes via Networks is a manual step, unlike the automatically routed allocated IP. Adding (and removing) routes should be performed automatically on sync.

Note that wireguard is already told that a peer has a network via dsnetconfg - it then tells the kernel in turn. Routes must be manually added, for instance

sudo ip route add 10.182.0.0/16 dev dsnet