Forum archive
Change IP Turnkey OpenVPN appliance
Hello everybody.
I would to explain you my problem with my OpenVPN server appliance. (Linux Turnkey OpenVPN).
I create a new server, new certicate, file .ovpn server and client (my iPhone), all works perfect.
The problem born when i have to change IP server from 192.168.1.31 to 192.168.9.31
After i change IP server i do these:
-I modify files .ovpn server and client, with this: push "route 192.168.1.0 255.255.255.0" to push "route 192.168.9.0 255.255.255.0"
-I change gateway inside OpenVPN server, works fine.
-I change all static ip of my lan, works fine.
-I change IP forwarding in to my router, works fine.
-I can connect with my dynamic DNS from internet to OpenVPN server, IP forward works fine.
-When VPN is connected i can ping only 192.168.9.31 address, but not other devices...
-If i connect with ssh console in LAN i can ping other devices and router without problem!
I check log into server and i found this: Linux route add command failed: external program exited with error status: 2
Where i wrong? Which other settings i have to do?
Teo
Anyway, in essence, this sounds like a networking configuration issue.
In a private network (i.e. a LAN) that uses 192.168.x.x, unless you explicitly bridge/route 192.168.2.x to 192.168.9.x then devices on the 2 separate subnets can't communicate with one another. That is expected behaviour.
My guess is that you didn't understand the implications of doing what you've done (and you assumed that 192.168.1.x and 192.168.9.x would be able to communicate with one another...
So what were you trying to achieve by configuring your OpenVPN to use a separate subnet? Perhaps there's another way to achevie your ends whilst allowing everything to still work?