Check which route for specific domain in Linux
Working from home during pandemic, requires most of us to connect to office network through VPN.
Some of us are getting used to having multiple VPNs to multiple site offices. When connected to VPN,
most of the time that this VPN connection routed all of our traffic through their VPN connection
which is not what we want because our home internet is much faster and is not restricted to
certain office policies.
Therefore, we may want to check which interface is our internet traffic routed to. As I'm using Linux, here is how to check it in ubuntu:
Therefore, we may want to check which interface is our internet traffic routed to. As I'm using Linux, here is how to check it in ubuntu:
$ ip route get $(dig google.com +short)As seen in screenshot above, the route is going through my local network interface device which is
eno1
. So I can rest assured that
my traffic to google.com is routed through my local internet.
Comments