Here is a (almost)working tun server config.
port xxxxx
proto tcp
dev tun
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
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
;push "route 192.168.0.8 255.255.255.255"
;push "redirect-gateway"
push "dhcp-option DNS 192.168.0.2"
client-to-client
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 5
Remote client (default configuration) can connect and get an ip 10.8.0.6
The problem is that I can't ping to some internal machines but some I can ping and connect to.
On the other hand...I can ping remote client from internal LAN (I added route to 10.8.0.0/24 on gateway)
It is like:
ping from 10.8.0.6 to 192.168.0.2 -> OK
ping from 10.8.0.6 to 192.168.0.5 -> request timedout
ping from 192.168.0.2 to 10.8.0.6 -> OK
ping from 192.168.0.5 to 10.8.0.6 -> OK
It seems that I can ping client from any machine in LAN, but the client can ping only few machines in LAN. I try to ping Linux, Win2003 and Win 2008. It seems that this is not firewall related.