Skip to content
Advertisement

Is routing table directing traffic through vpn?

I have successfully connected to the Fortinet Vpn using Openfortivpn but my traffic remains being routed int the same way.

I am using Ubuntu 18.04.1 LTS, and when I connect via the terminal I get the following log messages:

JavaScript

For some reason there seem to be multiple Got Addresses logs, that might be why my routing table looks different from the one I have found online:

JavaScript

When I check the traffic using sudo tcp -i ppp0 I get nothing, so this has lead me to believe that there must be routing table problem.

Any help would be greatly appreciated!

Advertisement

Answer

Your pppd probably did not add route to direct traffic to the VPN interface (say, ppp0). You can check the name of the VPN interface by this cmd ifconfig. After successfully running the command/GUI to connect to the VPN, you will see an extra interface (normally ppp0). Now, you can try running this command to force all traffic of your machine go through the VPN interface:

JavaScript

Note that, this command add a temporary route to the routing table. As soon as you turn off your VPN connection, the route is deleted. Every time you connect to the VPN server, you will need to run the above command again.

Hope this help.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement