Thanks for the info. I have reinstall and leave WireguardVPN.conf as is. Good news is I am able to get wg11 connected. Somehow devices that I have explicitly defined to use OVPN client is down, others are all going through wg11. How do I define devices to go through wg11 and leave others to go through ovpnc and WAN? In my current setup I leave everything to WAN, only specify 3 devices to go through ovpnc3. I am trying to add another device to go through wg11 for testing purpose.'WireguardVPN.conf' does not need to be modified for Peer configurations - all parameters are now held in the SQL database.
You simply need to use theimport
command using the 'client' Peer configuration provided by NordVPN as-is.
Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip rule
0: from all lookup local
9990: from all fwmark 0x8000/0x8000 lookup main
9993: from all fwmark 0x4000/0x4000 lookup ovpnc3
10501: from 10.22.0.0/24 lookup ovpnc3
10502: from 192.168.1.2 lookup ovpnc3
10503: from 192.168.1.11 lookup ovpnc3
10504: from 192.168.1.21 lookup ovpnc3
32766: from all lookup main
32767: from all lookup default
admin@RT-AC86U-DBA8:/tmp/home/root# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 128.0.0.0 U 0 0 0 wg11
default <WAN IP> 0.0.0.0 UG 0 0 0 ppp0
10.8.0.0 * 255.255.255.0 U 0 0 0 tun13
10.21.0.0 * 255.255.255.0 U 0 0 0 tun21
10.22.0.0 * 255.255.255.0 U 0 0 0 tun22
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
128.0.0.0 * 128.0.0.0 U 0 0 0 wg11
169.254.0.0 * 255.255.0.0 U 0 0 0 vlan500
<WAN IP> * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
202.87.221.198 <WAN IP> 255.255.255.255 UGH 0 0 0 ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#
Update: Linux based route table is something new to me. Mess around not fully understand what I did but finally get something I anticipated. I am now able to define source device to go through WAN, ovpnc3 and wg11.
Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip route get 8.8.8.8 from 192.168.1.2 iif eth0
8.8.8.8 from 192.168.1.2 via 10.8.2.1 dev tun13
cache iif eth0
admin@RT-AC86U-DBA8:/tmp/home/root# ip route get 8.8.8.8 from 192.168.1.91 iif eth0
8.8.8.8 from 192.168.1.91 via <wan ip> dev ppp0
cache iif eth0
admin@RT-AC86U-DBA8:/tmp/home/root# ip route get 8.8.8.8 from 192.168.1.111 iif eth0
8.8.8.8 from 192.168.1.111 dev wg11
cache iif eth0
Last edited: