#Network A (server)
public_ip: 111.112.113.9
local: 192.168.2.37
netstat:
0.0.0.0 | 111.112.113.2 | 0.0.0.0 | UG | 0 0 | 0 em2
10.8.0.0 | 10.8.0.2 | 255.255.255.0 | UG | 0 0 | 0 tun0
10.8.0.2 | 0.0.0.0 | 255.255.255.255 | UH | 0 0 | 0 tun0
111.112.113.1 | 0.0.0.0 | 255.255.255.224 | U | 0 0 | 0 em2
192.168.2.0 | 0.0.0.0 | 255.255.255.0 | U | 0 0 | 0 em1
192.168.4.0 | 10.8.0.2 | 255.255.255.0 | UG | 0 0 | 0 tun0
192.168.10.0 | 10.8.0.2 | 255.255.255.0 | UG | 0 0 | 0 tun0
server.conf
port 1194
proto udp
;dev tap
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.2.0 255.255.255.0"
client-config-dir ccd
route 192.168.10.0 255.255.255.0
push "route 192.168.10.0 255.255.255.0"
route 192.168.4.0 255.255.255.0
push "route 192.168.4.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gateway def1"
push "remote-gateway 111.112.113.9"
push "dhcp-option DNS 8.8.8.8"
#Network B(router VPN dd-wrt)
lan ip: 192.168.4.0
ccd config:
ifconfig-push 10.8.0.0 255.255.255.0
push "route 192.168.2.0 255.255.255.0 10.0.0.1"
iroute 192.168.4.0 255.255.255.0
#Network C(router VPN dd-wrt)
lan ip: 192.168.10.0
ifconfig-push 10.8.0.0 255.255.255.0
push "route 192.168.2.0 255.255.255.0 10.0.0.1"
iroute 192.168.10.0 255.255.255.0
For now i complete to connect server by dd-wrt
but i can't Ping to 192.168.2.40 or other clients
how i can ping from 192.168.4.10 to 192.168.2.40 or 192.168.10.10 ? Please..
Thanks,
Kidjapy