Simple question about client IP
Posted: Fri Feb 02, 2024 11:37 pm
Hi there,
This might be a dumb question, but I am a bit wondering how and why my client VPN ip is not visible from the lan..
Let me explain, here is the config:
INTERNET => BOX 192.168.1.254 => OPENVPN 192.168.1.250 (vpn client network 10.8.0.0) => Router 192.168.1.251/192.168.0.254 => LAN specific device 192.168.0.100
I only route some specific IP through the vpn (192.168.0.100), and when I am connected I have the client IP 10.8.0.2. So far so good..
I have a route on OpenVPN to use 192.168.1.251 to access 192.168.0.x (instead of default route to internet): route add 192.168.0.100/32 gw 192.168.1.251
I have no masquerading or whatever on openvpn server, but when I try a telnet on http port, the lan device "sees" me as 192.168.1.250 and not 10.8.0.2, any clue why ?
Dump:
197178 IP 192.168.1.250.22394 > 192.168.0.100.http
This might be a dumb question, but I am a bit wondering how and why my client VPN ip is not visible from the lan..
Let me explain, here is the config:
INTERNET => BOX 192.168.1.254 => OPENVPN 192.168.1.250 (vpn client network 10.8.0.0) => Router 192.168.1.251/192.168.0.254 => LAN specific device 192.168.0.100
I only route some specific IP through the vpn (192.168.0.100), and when I am connected I have the client IP 10.8.0.2. So far so good..
I have a route on OpenVPN to use 192.168.1.251 to access 192.168.0.x (instead of default route to internet): route add 192.168.0.100/32 gw 192.168.1.251
I have no masquerading or whatever on openvpn server, but when I try a telnet on http port, the lan device "sees" me as 192.168.1.250 and not 10.8.0.2, any clue why ?
Dump:
197178 IP 192.168.1.250.22394 > 192.168.0.100.http