WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.45k stars 68 forks source link

Any realiable method to shut down a tunnel and bringing it back? #115

Open mleone87 opened 2 years ago

mleone87 commented 2 years ago

Hi, I noticed that when I disable the wg interface to test a kill switch configuration, bringing it back does not route traffic through it because in the default route in the associated route table disappears since the gateway disappears.

Any method to bring it back without manual intervention?

DonDizzurp commented 2 years ago

I disable it from the web interface's dashboard all the time. It doesn't touch anything in the routing table.

If you use CLI, it should be 'set interfaces wireguard wg0 disable' to disable and 'delete interfaces wireguard wg0 disable' to enable. Is this what you're doing and it's giving you issues?