How to disable Wireguard static routing

I’m familiar to use dynamic routing and not static routing. All tutorials are with static routing where wireguard is included.
First i tried to add the routing and then disable the routing in the same command. Like this:

PostUp = ip route delete dev wg0; ip route delete dev wg0
PostDown = sleep 2

Then i found a way to disable the complete manual routing with this syntax in the wireguard config file.

Table = off


Leave a reply:

Your email address will not be published.

Site Footer