Need help about VPN routing
Posted: Mon Jun 18, 2012 11:57 am
I have setup one OpenVPN Server on CentoS Server with one interface with have WAN IP Adress.I have one Office Lan with have subnet : 192.168.1.0/24.The openvpn client on my LAN have IP 192.168.1.8 (Windows Server 2008)
My server.conf
port 1194
proto tcp
dev tun
ca easy-rsa/2.0/keys/ca.crt
cert easy-rsa/2.0/keys/server.crt
key easy-rsa/2.0/keys/server.key # This file should be kept secret
dh easy-rsa/2.0/keys/dh1024.pem
server 10.199.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
route 192.168.1.0 255.255.255.0
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status logs/openvpn-status.log
log logs/openvpn.log
verb 3
The server when start openvpn have IP 10.199.1.1 dev tun0
My client ccd :
ifconfig-push 10.199.1.5 10.199.1.6
iroute 192.168.1.0 255.255.255.0
Now on my client (192.168.1.8) can ping the server IP 10.199.1.1 . But now i want all my LAN network on the subnet 192.168.1.0/24 can ping to 10.199.1.1 .So this is my steps :
1. Enable IP forwarding on my Linux Server
2. Enable IP forwarding on my openvpn client (IPEnableRouter=1)
3. Add static route on my ADSL router :10.199.1.0 to 192.168.1.8
But if i using one LAN PC have IP like 192.168.1.10 i can not ping the Open VPN server (10.199.1.1)
So please help me to troubleshoot this
cause i have try several way but unsucess.
I'm a newbie
My server.conf
port 1194
proto tcp
dev tun
ca easy-rsa/2.0/keys/ca.crt
cert easy-rsa/2.0/keys/server.crt
key easy-rsa/2.0/keys/server.key # This file should be kept secret
dh easy-rsa/2.0/keys/dh1024.pem
server 10.199.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
route 192.168.1.0 255.255.255.0
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/ta.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status logs/openvpn-status.log
log logs/openvpn.log
verb 3
The server when start openvpn have IP 10.199.1.1 dev tun0
My client ccd :
ifconfig-push 10.199.1.5 10.199.1.6
iroute 192.168.1.0 255.255.255.0
Now on my client (192.168.1.8) can ping the server IP 10.199.1.1 . But now i want all my LAN network on the subnet 192.168.1.0/24 can ping to 10.199.1.1 .So this is my steps :
1. Enable IP forwarding on my Linux Server
2. Enable IP forwarding on my openvpn client (IPEnableRouter=1)
3. Add static route on my ADSL router :10.199.1.0 to 192.168.1.8
But if i using one LAN PC have IP like 192.168.1.10 i can not ping the Open VPN server (10.199.1.1)
So please help me to troubleshoot this

I'm a newbie
