I am trying to get a VPN running. I'd like programs to explicitly request the interface rather than route ALL traffic, like with
curl --interface ppp0 ip.bsd-unix.net should send through the VPN, but somehow, using
iftop, I can see traffic going through eth0 instead, even when the source IP is 10.10.1.2. Here's my
ip route show:
default via 149.x.y.z dev eth0 10.10.1.1 dev ppp0 proto kernel scope link src 10.10.1.2 149.x.y.128/25 dev eth0 proto kernel scope link src 149.x.y.172
Some IPs obscured. The second one is added by xl2tp when it starts and the ppp0 interface is created. 149.etc is my LAN, and 10.etc is my VPN.
Also, when I
ping -I ppp0 188.8.131.52, I can see ppp0 activity, and I get replies with higher ms which would suggest they're going through the VPN.