I have followed RUTX50 wireguard VPN, but only to affect specific local IP addresses?
Everything is set as it shows except the ip address of the device to be routed this way is 192.168.0.252.
I am confused by the IPV4-Gateway. in the policy based routing
I have tried: The 45.xx address (See below), the endpoint address after getting ip from Convert Host Name to IP Address or Find IP address of a host - e.g. find IP address of host name of,
Current issue:
- The 192.168.0.252 is still routing through the ISP and not the VPN tunnel
- When I remove the
The Wireguard configuration file is as follows:
[Interface]
PrivateKey=REDACTED
Address=45.74.0.XX
DNS=45.74.0.YY,45.74.0.ZZ
[Peer]
PublicKey=REDACTED
AllowedIPs=0.0.0.0/0
Endpoint=sx0230113-wg.pointtoserver.com:51820
PersistentKeepalive=21
I have redacted parts of ip addresses but made the redactions coded so you can refer to the correct address.
ifconfig
PURE Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:45.74.0.92 P-t-P:45.74.0.92 Mask:255.255.255.0
UP POINTOPOINT RUNNING NOARP MTU:1420 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@RUTX09:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 3 0 0 qmimux0
10.162.118.68 0.0.0.0 255.255.255.255 UH 3 0 0 qmimux0
45.74.0.0 0.0.0.0 255.255.255.0 U 0 0 0 PURE
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
I understand how frustrating it is for you guys to repeat the same thing but I promise I have tried for two nights now and even reset the router to factory defaults too.
ps:
I think the WG is connected
WG show