I have a router-router IPSEC VPN and am struggling to get a specific ip to go through the vpn instead of out to the internet. How does my router know whether to send traffic via the internet connection or through the vpn? The router on this side is running pfSense.
If I tracepath a local address on the vpn'd network it works and I get:
1: localghost.local (10.44.35.103) 0.109ms pmtu 1500 1: router.office1.blah.co.uk (10.44.35.1) 0.401ms 1: router.office1.blah.co.uk (10.44.35.1) 0.379ms 2: 184.108.40.206 (220.127.116.11) 58.295ms 3: 10.199.2.3 (10.199.2.3) 49.900ms reached
where router.office1.blah.co.uk is on one side of the vpn and 18.104.22.168 on the other.
But when I try to 22.214.171.124 it doesn't go down the vpn:
1: localghost.local (10.44.35.103) 0.117ms pmtu 1500 1: router.office.blah.co.uk (10.44.35.1) 0.415ms 1: router.office.blah.co.uk (10.44.35.1) 0.385ms 2: router.office.blah.co.uk (10.44.35.1) 0.414ms pmtu 1492 2: lns3.uan.the.uk.murphx.net (126.96.36.199) 38.651ms