- Enterprise Cloud Security and Governance
- Zeal Vora
- 116字
- 2025-04-04 17:38:54
Routes – after VPN is connected
zeal@kplabs:~/Documents$ route –n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.225.1 0.0.0.0 UG 0 0 0 wlan0 172.27.224.0 0.0.0.0 255.255.240.0 U 0 0 0 tun0
If we compare the difference, there are two additional routes that are added after VPN is connected. I have created a test internal network with subnet 172.18.0.0/16.
If we look at the third line of the route, all the traffic to 172.18.0.0/16 network is being routed to 192.168.50.1 gateway, which is basically used by VPN.
So, essentially, all traffic, be it SSH, HTTP, HTTPS, or any destined for 172.18.0.0/16 network will automatically be routed via VPN server.