Assuming you have correctly setup the configuration like so:
journalctl -u xl2tpd -f
xl2tpd which does the tunneling.
Then establish the tunnel:
# echo "c myisp" > /var/run/xl2tpd/l2tp-control
The point to point ppp0 interface should come up. Now we need to route traffic through it, but make sure we don’t disrupt the existing network to the tunnel. Lets assume we connect to the tunnel by connecting to the IP address of 18.104.22.168
enp0s31f6 is the unique name of my wired interface.
ip route add 22.214.171.124 via 192.168.1.1 dev enp0s31f6
We are telling to get to 126.96.36.199, we need to go through our normal router’s route of
Now for all other traffic, say the IP address you pop out of is
we set a new route to say all or “default” traffic gets tunneled through it, like so:
ip route add default via 188.8.131.52 dev ppp0