Can only ping/access Router and OpenVPN Server
Posted: Fri Dec 09, 2011 1:07 pm
Hi,
Trying to get Windows 7 64 VPN'd into a remote network. Need access to the LAN (servers, shares). Server is running CentOS 5.7 on XenServer. This is the first time I've tried to set up an OpenVPN server, and I've tried reading through the docs but I'm missing something...
Currently, I can connect the W7-64 box to CentOS 5.7 and it connects just fine. I'm able to ping back and forth between the two - however, I can't access anything else on the network.
The router is a Netgear FVX538. I have a feeling that my problem is simple and either a setting in my configs or on the Netgear router - I've always had trouble with this thing.
- LAN is 192.168.1.* (was set up before I got here, and there's too much riding on it to do a smooth change...)
- Remote computer's LAN is 192.168.4.*
- 192.168.1.30 is primary DNS srv (on w2k3)
- IP forwarding is enabled - "net.ipv4.ip_forward = 1" in /etc/sysctl.conf
I have a route set up in the router:
Active
Destination IP Address: 10.8.0.0
IP Subnet Mask: 255.255.255.0
Interface: LAN
Gateway IP Address: 192.168.1.126 (CentOS IP - VPN here)
Metric: 2
server.conf:
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
log /etc/openvpn/openvpn.log
verb 3
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.30"
push "dhcp-option WINS 192.168.1.30"
client.conf:
remote (host ip)
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
Any thoughts? Thanks so much.
EDIT: By adding route 192.168.1.0 255.255.255.0 to the client's config I can now ping the router (192.168.1.6) and the OpenVPN server (either by 10.8.0.1 or 192.168.1.126) - but NO other PC/server on the network. Does this mean my "push" commands aren't working, since that's already in the server conf under push?
Trying to get Windows 7 64 VPN'd into a remote network. Need access to the LAN (servers, shares). Server is running CentOS 5.7 on XenServer. This is the first time I've tried to set up an OpenVPN server, and I've tried reading through the docs but I'm missing something...
Currently, I can connect the W7-64 box to CentOS 5.7 and it connects just fine. I'm able to ping back and forth between the two - however, I can't access anything else on the network.
The router is a Netgear FVX538. I have a feeling that my problem is simple and either a setting in my configs or on the Netgear router - I've always had trouble with this thing.
- LAN is 192.168.1.* (was set up before I got here, and there's too much riding on it to do a smooth change...)
- Remote computer's LAN is 192.168.4.*
- 192.168.1.30 is primary DNS srv (on w2k3)
- IP forwarding is enabled - "net.ipv4.ip_forward = 1" in /etc/sysctl.conf
I have a route set up in the router:
Active
Destination IP Address: 10.8.0.0
IP Subnet Mask: 255.255.255.0
Interface: LAN
Gateway IP Address: 192.168.1.126 (CentOS IP - VPN here)
Metric: 2
server.conf:
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
log /etc/openvpn/openvpn.log
verb 3
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.30"
push "dhcp-option WINS 192.168.1.30"
client.conf:
remote (host ip)
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
Any thoughts? Thanks so much.
EDIT: By adding route 192.168.1.0 255.255.255.0 to the client's config I can now ping the router (192.168.1.6) and the OpenVPN server (either by 10.8.0.1 or 192.168.1.126) - but NO other PC/server on the network. Does this mean my "push" commands aren't working, since that's already in the server conf under push?