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 192.168.5.0/24 dev wg0; ip route delete 192.168.6.0/24 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

Source.

Leave a reply:

Your email address will not be published.

Site Footer