OpenVPN: Can ping server, but cannot see files or other machines
I am setting up an OpenVPN server on a Debian distribution behind a router at my office. I am connecting from a Windows 7 client. I have configured the OpenVPN server as posted below, and am able to connect remotely to the server over the virtual network. However, I am unable to see files on the server or ping other machines on the local network (LAN). All I really would like to do is be able to connect to a Drobo file server on the LAN. I recognize that all of the information that I need is probably very available on the internet, and suspect that I have read through it all, also (between the OpenVPN HOWTO and other forum posts), but I am not very well versed with networking, and I have difficulty understanding and applying a lot of what I have read. Below is some of the code that may be useful in understanding the current setup. Thank you for your help.
server.conf:
Code:
port 1194
proto udp
dev tun
push "route 192.168.3.0 255.255.255.0"
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 4
'route' command returns:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default Leppert.Leppert 0.0.0.0 UG 0 0 0 eth0
'ifconfig' command returns:
Code:
eth0 Link encap:Ethernet HWaddr 00:17:31:08:1f:e2
inet addr:192.168.3.199 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::217:31ff:fe08:1fe2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:158897 errors:0 dropped:0 overruns:0 frame:0
TX packets:24960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53596784 (51.1 MiB) TX bytes:3525918 (3.3 MiB)
Interrupt:20 Base address:0xdc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:340 errors:0 dropped:0 overruns:0 frame:0
TX packets:340 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35364 (34.5 KiB) TX bytes:35364 (34.5 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:6542 (6.3 KiB) TX bytes:6738 (6.5 KiB)
New Issue with OpenVPN Setup
Thank you, zombykillah, for the IP forwarding suggestion. I had set this, but didn't understand it, nor had I made it permanent, so it was not still forwarding. I have a new issue, though. I had tried several configuration options and then moved the machine to the server room, and thought that I reset everything to its previous state, but I think that I have changed something and I don't know what. The log on the client machine is listed below.
Code:
Tue Dec 27 14:09:39 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Tue Dec 27 14:09:39 2011 WARNING: No server certificate verification method has been enabled. See http...openvpn...#mitm for more info.
Tue Dec 27 14:09:39 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Dec 27 14:09:39 2011 LZO compression initialized
Tue Dec 27 14:09:39 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Dec 27 14:09:39 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Dec 27 14:09:39 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Dec 27 14:09:39 2011 Local Options hash (VER=V4): '41690919'
Tue Dec 27 14:09:39 2011 Expected Remote Options hash (VER=V4): '530fdded'
Tue Dec 27 14:09:39 2011 UDPv4 link local: [undef]
Tue Dec 27 14:09:39 2011 UDPv4 link remote: x.x.x.x:1194
Tue Dec 27 14:09:39 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:41 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:45 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:53 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:10:10 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:10:39 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Dec 27 14:10:39 2011 TLS Error: TLS handshake failed
Tue Dec 27 14:10:39 2011 TCP/UDP: Closing socket
Tue Dec 27 14:10:39 2011 SIGUSR1[soft,tls-error] received, process restarting
My iptable is below. I figured that this basically accepts anything:
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Again, thanks for the help.
Fixed the new issue, still have the old issue
Quote:
Originally Posted by
oranisme
Thank you, zombykillah, for the IP forwarding suggestion. I had set this, but didn't understand it, nor had I made it permanent, so it was not still forwarding. I have a new issue, though. I had tried several configuration options and then moved the machine to the server room, and thought that I reset everything to its previous state, but I think that I have changed something and I don't know what. The log on the client machine is listed below.
Code:
Tue Dec 27 14:09:39 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Tue Dec 27 14:09:39 2011 WARNING: No server certificate verification method has been enabled. See http...openvpn...#mitm for more info.
Tue Dec 27 14:09:39 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Dec 27 14:09:39 2011 LZO compression initialized
Tue Dec 27 14:09:39 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Dec 27 14:09:39 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Dec 27 14:09:39 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Dec 27 14:09:39 2011 Local Options hash (VER=V4): '41690919'
Tue Dec 27 14:09:39 2011 Expected Remote Options hash (VER=V4): '530fdded'
Tue Dec 27 14:09:39 2011 UDPv4 link local: [undef]
Tue Dec 27 14:09:39 2011 UDPv4 link remote: x.x.x.x:1194
Tue Dec 27 14:09:39 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:41 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:45 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:09:53 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:10:10 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Dec 27 14:10:39 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Dec 27 14:10:39 2011 TLS Error: TLS handshake failed
Tue Dec 27 14:10:39 2011 TCP/UDP: Closing socket
Tue Dec 27 14:10:39 2011 SIGUSR1[soft,tls-error] received, process restarting
My iptable is below. I figured that this basically accepts anything:
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Again, thanks for the help.
I realized where my configuration change was. I selected the wrong port when making a firewall change on my router, and told port 1194 to only accept TCP. It is changed back to UDP, and I am in the same place as before. I suspect that zombykillah's advice about iptables should be looked into, but I am not sure where to start. The iptables configuration is as is quoted above, and I have ensured that IP forwarding is set in /etc/sysctl.conf.
Thanks!