Road Warrior setup
Posted: Mon Jan 02, 2012 6:35 am
hello All,
I have few but confused ideas about vpn, so please be gentle...
Here is the situation.
I have two sites, connected by an ipsec vpn beween two Zyxel routers.
The two segments are 192.168.1.* and 192.168.2.*
When I am on Lan, I can see the two segments transparently: mail server, webcams, etc.
One server has an OpenVpn service for road warriors.
It works fine, except when the local network is numbered 192.168.1*, which is quite a common situation.
In this case the laptop tries to find the mail server on the lan instead of routing to the vpn.
How can I fix the setup?
Here is the road warrior conf file:
gian@server2007:/etc/openvpn$ cat road-warriors.conf
local 192.168.1.125
port 1194
proto udp
dev tun
user nobody
group nogroup
daemon
secret /etc/openvpn/key/static.key
up /etc/openvpn/up-rw.sh
ifconfig 10.10.10.1 10.10.10.2
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
#script-security 2
comp-lzo
persist-key
persist-tun
status openvpn-status-rw.log
keepalive 10 60
log-append /var/log/openvpn/openvpn-rw.log
verb 3
Should I remove the two Zyxels, replace them with an Ipfire (for example) router, and use Openvpn to connect site1 with site2?
Thanks for reading,
-Gian
I have few but confused ideas about vpn, so please be gentle...
Here is the situation.
I have two sites, connected by an ipsec vpn beween two Zyxel routers.
The two segments are 192.168.1.* and 192.168.2.*
When I am on Lan, I can see the two segments transparently: mail server, webcams, etc.
One server has an OpenVpn service for road warriors.
It works fine, except when the local network is numbered 192.168.1*, which is quite a common situation.
In this case the laptop tries to find the mail server on the lan instead of routing to the vpn.
How can I fix the setup?
Here is the road warrior conf file:
gian@server2007:/etc/openvpn$ cat road-warriors.conf
local 192.168.1.125
port 1194
proto udp
dev tun
user nobody
group nogroup
daemon
secret /etc/openvpn/key/static.key
up /etc/openvpn/up-rw.sh
ifconfig 10.10.10.1 10.10.10.2
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
#script-security 2
comp-lzo
persist-key
persist-tun
status openvpn-status-rw.log
keepalive 10 60
log-append /var/log/openvpn/openvpn-rw.log
verb 3
Should I remove the two Zyxels, replace them with an Ipfire (for example) router, and use Openvpn to connect site1 with site2?
Thanks for reading,
-Gian