Hello, I have a stupid newbie question, just want some background...
Everything seems to be working with OpenVPN/Alpine, but I just want to understand something....
On my openVPN server (on Alpine server via docker container),
route -n produces:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.254.0 192.168.255.2 255.255.255.0 UG 0 0 0 tun0
192.168.255.0 192.168.255.2 255.255.255.0 UG 0 0 0 tun0
192.168.255.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
When client connects with OpenVPN the gateway ends up on 192.168.255.5 when my LAN gateway is actually 192.168.0.1
This is normal I assume (it works) but if somebody could please explain in fairly simplistic terms why gateway has changed. I'm assuming the subnets would not be able to ping each otherwise, and I assume some mapping is going on... just need a better explanation of how it works/what is going on...
Thanks!