- Make new network (seems like you've done that and named it
wg
) - Make route for
default
viamullvad
on another table (e.g. Table No. 2):
# in /etc/config/network
config route
option target '0.0.0.0'
option netmask '0.0.0.0'
option table '2'
option interface 'mullvad'
- Make an routing rule for the WiFi network
wg
to use interfacemullvad
:
# in /etc/config/network
config rule
option in 'wg'
option dest '0.0.0.0/0'
option priority '10'
option lookup '2'
- Done!