I have installed openvpn server on a linux redhat5 machine. and my client is running on windows xp.
connecting client to server works fine and client gets an ip address from the server without any problem. but i had to add routes to client manually.
client configuration:
client
;dev tap
dev tun
;proto tcp
proto udp
remote 193.1.253.30 1194
;remote my-server-2 1194
resolv-retry infinite
nobind
persist-key
ca ca.crt
cert test-client.crt
key test-client.key
verb 3
so i wanted to automate the route add to client. for that i configured my server configuration as below:
server conf:
local 10.12.4.200
port 1194
# TCP or UDP server?
#proto tcp
proto udp
dev tun
server 10.12.4.0 255.255.255.0
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh1024.pem
client-config-dir /etc/openvpn/ccd/
ifconfig-pool-persist ipp.txt
keepalive 10 60
#comp-lzo
log openvpn.log
log-append openvpn.log
and in ccd forlder i have the file for my client which i created manually:
route 10.12.64.0 255.255.255.0
route 10.12.8.0 255.255.255.0
route 10.12.9.0 255.255.255.0
route 10.12.10.0 255.255.255.0
route 10.12.11.0 255.255.255.0
route *.*.*.*.0 255.255.255.224
but if i use the above server config and the ccd folder my client gets connects to the server, gets an ip address but does not add any routes and able to ping to server, viseversa.
so again i changed my server config to below:
local 10.12.4.200
port 1194
# TCP or UDP server?
#proto tcp
proto udp
dev tun
server 10.12.4.0 255.255.255.0
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh1024.pem
client-config-dir /etc/openvpn/ccd/
push "route 10.12.4.0 255.255.255.0"
push "route 10.12.64.0 255.255.255.0"
push "route 10.12.8.0 255.255.255.0"
push "route 10.12.9.0 255.255.255.0"
push "route 10.12.10.0 255.255.255.0"
push "route 10.12.11.0 255.255.255.0"
push "route 193.1.253.0 255.255.255.224"
ifconfig-pool-persist ipp.txt
keepalive 10 60
#comp-lzo
log openvpn.log
log-append openvpn.log
after using this configuration my client is able to connect to the server, gets ip address from the server but not able to ping the server and server is not able to ping the client.
moreover my servers logs shows nothing about any client connection.
i really need some helo to resolve the issue........

please please let me knwo what should i do.
Thanks alott!!!