Invalid Subnet Mask and no Default Gateway
Posted: Wed Jan 11, 2012 5:45 am
This is my first time setting up OpenVPN on Linksys E2000 with DD-WRT v24-sp2 (04/13/11) with OpenVPN GUI v1.03.
The Linksys E2000 IP is: 192.168.10.1
OpenVPN Server: 10.121.40.1
Server config: (Services->VPN):
Start OpenVPN Server: Enable
Start Type: WAN Up
Config via: Config File
CA Cert: ca.crt
Public Server Key: server.csr
DH PEM: dh1024.pem
Additional Config:
push "route 192.168.10.0 255.255.255.0"
server 10.121.40.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
comp-lzo
management localhost 5001
Firewall Setting (Administration -> Commands -> Firewall):
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.121.40.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
Client Config file:
client
dev tun0
remote-cert-tls server
float
proto udp
remote xx.xx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert PC.crt
key PC.key
ns-cert-type server
comp-lzo
verb 3
I can VPN to the server; however, it gave me wrong subnet mask and no GW info:
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::75eb:a4d4:352b:6a8%34
IPv4 Address. . . . . . . . . . . : 10.121.40.6
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
I can not ping the client (192.168.10.10, static) behind the VPN server unless I turn off the Windows 7 Firewall. I can ping the router via 192.168.10.1.
Please help.
The Linksys E2000 IP is: 192.168.10.1
OpenVPN Server: 10.121.40.1
Server config: (Services->VPN):
Start OpenVPN Server: Enable
Start Type: WAN Up
Config via: Config File
CA Cert: ca.crt
Public Server Key: server.csr
DH PEM: dh1024.pem
Additional Config:
push "route 192.168.10.0 255.255.255.0"
server 10.121.40.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
comp-lzo
management localhost 5001
Firewall Setting (Administration -> Commands -> Firewall):
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.121.40.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
Client Config file:
client
dev tun0
remote-cert-tls server
float
proto udp
remote xx.xx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert PC.crt
key PC.key
ns-cert-type server
comp-lzo
verb 3
I can VPN to the server; however, it gave me wrong subnet mask and no GW info:
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::75eb:a4d4:352b:6a8%34
IPv4 Address. . . . . . . . . . . : 10.121.40.6
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
I can not ping the client (192.168.10.10, static) behind the VPN server unless I turn off the Windows 7 Firewall. I can ping the router via 192.168.10.1.
Please help.