Split tunnel vpn

I previously used vpn-policy-routing but this is no longer supported

I am trying to route to LAN ip addresses via VPN interface called PUREVPN

I have followed many guides and still can only get all traffic through ISP

I have created my VPN and run wg command on putty -successfully connected
I have added a routing table with number 244

I have them set the rule as


I have then went back to the VPN and put the routing table number in the peer

I have checked the traffic rule

So any help to get
192.168.0.252 and 192.168.0.253 via VPN and all other traffic through ISP mobile interface

Hello,

Apologies for a delayed response. Could you confirm whether you’ve found the solution for this inquiry, or do you still need assistance?

If the assistance is still needed, your setup (routing only specific IPs via the VPN tunnel while keeping all other traffic through the ISP mobile interface) should be achievable using a policy-based routing rule combined with a few WG client’s adjustments, as described in a similar topic here:

From what you’ve shared, it seems that in your first screenshot, the IPv4 gateway in the routing table’s static IPv4 routes configuration is not specified, which should be your VPN server’s IP address.

Please also ensure the following:

  • In the WireGuard client’s Advanced Settings, the routing table ID (ID 244) is added.
  • In WireGuard peer settings, “Route Allowed IPs” is unchecked.
  • In Network → Routing → Policy Based Routing, create a rule where:
    • Incoming interface = lan;
    • Source IP = 192.168.0.252/32 and 192.168.0.253/32;
    • Lookup table = 244.
  • And in your custom routing table, the static route via the WG interface using your VPN server’s IP as the gateway is configured correctly.

Let me know if any of this helps.

Best regards,

Hi thanks for the steps but this is still not working.

I have a trouble shooting file if you want it.

At the moment all traffic is routing through the ISP and not selected through the VPN. I am using the mobs1 connection if that makes a difference in configuration.