Hi all,
I am trying to setup VPN at my work.
I have the following situation:
At work: network is in the 10.0.0.0 range
The server running OpenVPN is CentOS 5
This is the conf file:
Code:
dev tun
ifconfig 10.1.0.1 10.1.0.2
up ./office.up
;route 192.168.0.0 255.255.0.0 10.1.0.2
tls-server
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key # This file should be kept secret
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
verb 3
And office.up:
Code:
#!/bin/sh
route add -net 192.168.1.0 netmask 255.255.255.0 gw $5
This is what I have at home:
Network is in the 192.168.1.0 range.
Pc is use is Windows XP.
this is the conf file:
Code:
dev tun
remote ****external ip of the server
ifconfig 10.1.0.2 10.1.0.1
;up home.bat
route 10.0.0.0 255.255.255.0 10.1.0.1
tls-client
ca "E:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "E:\\Program Files\\OpenVPN\\config\\client1.crt"
key "E:\\Program Files\\OpenVPN\\config\\client1.key"
verb 3
When I try to connect from home the connection is succesful. And I can ping 10.0.0.20, this is the local-ip adress of the VPN server.
But I can't ping other serves on my office-network.
I did set ip-forwarding on by changing /etc/sysctl.conf; I did set net.ipv4.ip_forward = 1.
I also did set net.ipv4.conf.all.proxy_arp =1 .
I don't use a firewall on both environments.
I use the example files from OpenVPN tls-client.conf and tls-server.conf, and I changed those a little bit.
Here is a screenprint from ipconfig(XP) after connecting to the vpn server:
http://img397.imageshack.us/my.php?i...elding1kr0.png
What did I forget??
What have I done wrong??