[Resolved] Aceess local network behind OpenVPN (tun setup)
Posted: Mon Oct 31, 2011 5:38 pm
Hi, could anyone help me. I've spent 2 days trying to figure out how to connect to OpenVPN server and get access to local network resources. Tons of tutorials and howtos..
OpenVPN is running on machine, that acts as router for internet access. The router has 2 physical ethernet cards:
eth0 - internet access
eth1 - local area network 192.168.2.0/255.255.255.0
I can access server via intenet address, vpn address (10.10.2.1) and local network address (192.168.2.1)
I can ssh, ping etc. but i can't comunicate any machine on local network, for example 192.168.2.50
My home network is 192.168.1.0/255.255.255.0 and my home network ip is 192.168.1.100
Here is server config
ccd contains
trace from server to client (looks good)
192.168.2.50 is pingable from server.
OpenVPN is running on machine, that acts as router for internet access. The router has 2 physical ethernet cards:
eth0 - internet access
eth1 - local area network 192.168.2.0/255.255.255.0
I can access server via intenet address, vpn address (10.10.2.1) and local network address (192.168.2.1)
I can ssh, ping etc. but i can't comunicate any machine on local network, for example 192.168.2.50
My home network is 192.168.1.0/255.255.255.0 and my home network ip is 192.168.1.100
Here is server config
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.10.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.1.0 255.255.255.0
push "route 192.168.2.0 255.255.255.0"
client-config-dir ccd
client-to-client
duplicate-cn
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
Code: Select all
iroute 192.168.1.0 255.255.255.0
- $tracepath 192.168.1.100
1: 10.10.2.1 0.674ms pmtu 1500
1: 192.168.1.100 44.124ms reached
1: 192.168.1.100 43.693ms reached
Resume: pmtu 1500 hops 1 back 64
- tracepath 192.168.2.1
1: 10.10.2.6 0.166ms pmtu 1500
1: 192.168.2.1 31.970ms reached
1: 192.168.2.1 31.167ms reached
Resume: pmtu 1500 hops 1 back 64
192.168.2.50 is pingable from server.
- tracepath 192.168.2.50
1: 10.10.2.6 0.238ms pmtu 1500
1: 10.10.2.1 33.992ms
1: 10.10.2.1 33.560ms
2: no reply
3: no reply
4: no reply
5: no reply