I have finally managed to get mullvad VPN to work after initial installation and configuration of openWRT
(Please keep in mind that I am COMPLETELY new to openWRT as I recently installed it 2 days ago but have some knowledge of networking, Linux terminal)
Problem: all traffic is going through the VPN tunnel
Which is very inconvenient considering that I only want one IP address (or one device if that helps) to go through the VPN tunnel when communicating out to the internet.
Please note: I still do need this device connected to the local area network.
The QUESTION:
How can I achieve only one device going through the tunnel when the default is the tunnel?
It depends what you plan to do and how the actual config is (interfaces, routes, fw/zones, rules, ...). You can also check this.
As you already have PBR installed and assuming your device is in LAN within the network 192.168.1.0/24 and your mullvad interface is named "vpn" (Descriped here):
Route LAN to VPN
uci add pbr policy
uci set pbr.@policy[-1].src_addr="192.168.1.xxx/32"
uci set pbr.@policy[-1].interface="vpn"
uci commit pbr
service pbr restart
If this is not working, then it would be a bit easier if you share your actual config.
mwan3 is a bit more complex, in my opinion, to configure it, but offers more options.