Was configuring a WireGuard interface to be solely for split-tunneling qBittorrent and it took me a day to figure out how to actually set it up 💔
So you just turn off route table setting that wg-quick did automatically with Table = off
and create a new route table on PostUp
Example configuration to be pasted in [Interface] section
the table ID here is 100, change it to whatever you want ig
with 10.0.0.2 being your WireGuard interface IP
Table = off
PostUp = ip route add default dev %i table 100
PostUp = ip rule add from 10.0.0.2 table 100
PostDown = ip rule del from 10.0.0.2 table 100
Leave a Reply