WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
727 stars 85 forks source link

Conf is not saved #136

Closed Deepanshusuman closed 1 year ago

Deepanshusuman commented 1 year ago

after adding peer to the device and closing the instance the conf is not saved. do i have to manually do so or i am missing something

Deepanshusuman commented 1 year ago

and conf is erased in reboot

Deepanshusuman commented 1 year ago

and until i didnt add the conf to /etc/wiregaurd/wg0.conf and restart it doesnt connect

Deepanshusuman commented 1 year ago

and until i didnt add the conf to /etc/wiregaurd/wg0.conf and restart it doesnt connect

i have soled the conf is erased by adding

[Interface]
...
SaveConfig = true

but i cant connect to wiregaurd created by this library until i manually restart like

sudo systemctl restart  wg-quick@wg0.service 
Deepanshusuman commented 1 year ago

but i cant connect to wiregaurd created by this library until i manually restart like Solved via

ip -4 route add  10.0.0.46/32 dev wg0