I am still struggling with this and would very much appreciate any further thoughts.
Gateway router - (virgin superhub) - provides ip addresses in the range 192.168.36.x
gateway router address on LAN 192.168.36.1
gateway provides dns servers as 194.168.4.100 & 194.168.8.100
Openvpn server / router is configured as a wireless bridge with DHCP turned off locally (since the superhub provides ip addresses)
ipaddress on LAN 192.168.36.2
When the VPN tunnel is set up, I can ping both routers from the client machine but cannot ping anything outside the LAN i.e. google by ip address 8.8.8.8 or by name.
an update with my latest config:
Client machine (windows7) config file
client
dev tun0
proto udp
remote 80.3.69.134 1194
resolv-retry infinite
nobind
persist-key
persist-tun
float
tun-mtu 1500
tun-mtu-extra 32
#mssfix 1450
keepalive 10 60
#explicit-exit-notify 3
ca ca.crt
cert client1.crt
key client1.key
cipher AES-128-CBC
#comp-lzo
verb 4
redirect-gateway def1
#dhcp-option DNS 192.168.4.100
#dhcp-option DNS 192.168.8.100
#ns-cert-type server
server (DD-WRT router) config file
dev tun0
proto udp
port 1194
management localhost 5001
server 192.168.66.0 255.255.255.0
push "route 192.168.36.0 255.255.255.0"
push "redirect-gateway def1"
client-to-client
cipher AES-128-CBC
max-clients 10
keepalive 10 60
verb 5
ca /tmp/openvpn/ca.crt
dh /tmp/openvpn/dh.pem
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
Firewall rules on server
iptables -I INPUT 1 -p tcp --dport 1194 -j ACCEPT
iptables -A INPUT -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun0 -j ACCEPT
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A FORWARD -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.66.0/24 -o eth0 -j MASQUERADE
Netstat -nr
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.43.1.1 10.43.2.45 25
0.0.0.0 128.0.0.0 192.168.66.5 192.168.66.6 30
10.43.0.0 255.255.0.0 On-link 10.43.2.45 281
10.43.2.45 255.255.255.255 On-link 10.43.2.45 281
10.43.255.255 255.255.255.255 On-link 10.43.2.45 281
xx.x.xx.xxx 255.255.255.255 10.43.1.1 10.43.2.45 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
128.0.0.0 128.0.0.0 192.168.66.5 192.168.66.6 30
------> 192.168.36.0 255.255.255.0 192.168.66.5 192.168.66.6 30 <-------
192.168.66.0 255.255.255.0 192.168.66.5 192.168.66.6 30
192.168.66.4 255.255.255.252 On-link 192.168.66.6 286
192.168.66.6 255.255.255.255 On-link 192.168.66.6 286
192.168.66.7 255.255.255.255 On-link 192.168.66.6 286
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.66.6 286
224.0.0.0 240.0.0.0 On-link 10.43.2.45 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.66.6 286
255.255.255.255 255.255.255.255 On-link 10.43.2.45 281
===========================================================================
Persistent Routes:
None
(Does this look correct - It looks like I can see a route to the LAN from the VPN.. by arrows above, does there need to be a similar routing going back the other way? from LAN 192.168.36.0 to VPN 192.168.66.0?)
Alternatively, any other suggestions how to trouble shoot this please?