wg-bond icon indicating copy to clipboard operation
wg-bond copied to clipboard

Specify subnet for peers

Open cab404 opened this issue 2 years ago • 0 comments

by @devhell, apparently

It would be great to be able to define subnets for peers, so something like this is generated:

[Interface]
Address = 10.0.0.7/32 <<- this here
PrivateKey = 8ONdwmjqfHOObQBcxWgHPNtNAzcmT3CRHqhID9mRwVY=
DNS = 10.0.0.1

[Peer]
PublicKey = Fk7JOZIZAtggbCcHMyD+99PtJTvjAEuu4bbQv6vqYkI=
PresharedKey = sY+hDUQMF+O252ee2lLRi1O5DwgacQx7k0/Pos2mTPg=
AllowedIPs = 10.0.0.0/16 <<- and this here
Endpoint = xxx.xxx.xxx.xxx:51820
PersistentKeepalive = 21

orig: https://gitlab.com/cab404/wg-bond/-/issues/35

cab404 avatar Feb 13 '22 00:02 cab404