I've gone through the installation for OpenVPN on my router twice over the last two weeks trying to get my VPN connection up and running. Unfortunately, I haven't had any luck. I've figured how to break it and how to get it to partially work. I get the following messages when trying to connect:
The server reports:
Tue Aug 7 13:40:42 2007 OpenVPN 2.0.9 mipsel-linux [SSL] [LZO] [EPOLL] built on Feb 13 2007
Tue Aug 7 13:40:42 2007 WARNING: file '/etc/secret.key' is group or others accessible
Tue Aug 7 13:40:42 2007 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Aug 7 13:40:42 2007 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 7 13:40:42 2007 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Aug 7 13:40:42 2007 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 7 13:40:42 2007 TUN/TAP device tap0 opened
Tue Aug 7 13:40:42 2007 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:4 ET:32 EL:0 ]
Tue Aug 7 13:40:42 2007 Local Options hash (VER=V4): '8b888ddc'
Tue Aug 7 13:40:42 2007 Expected Remote Options hash (VER=V4): '8b888ddc'
Tue Aug 7 13:40:42 2007 UDPv4 link local (bound): [undef]:1194
Tue Aug 7 13:40:42 2007 UDPv4 link remote: [undef]
Tue Aug 7 13:41:20 2007 Peer Connection Initiated with 64.90.196.88:1719
Tue Aug 7 13:41:20 2007 Initialization Sequence CompletedClient Log:
Tue Aug 07 13:39:19 2007 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Tue Aug 07 13:39:19 2007 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Tue Aug 07 13:39:19 2007 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Aug 07 13:39:19 2007 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 07 13:39:19 2007 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Aug 07 13:39:19 2007 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 07 13:39:19 2007 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{1DE2142B-DC85-4E16-B545-137922458420}.tap
Tue Aug 07 13:39:19 2007 TAP-Win32 Driver Version 8.4
Tue Aug 07 13:39:19 2007 TAP-Win32 MTU=1500
Tue Aug 07 13:39:19 2007 Successful ARP Flush on interface [5] {1DE2142B-DC85-4E16-B545-137922458420}
Tue Aug 07 13:39:19 2007 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:4 ET:32 EL:0 ]
Tue Aug 07 13:39:19 2007 Local Options hash (VER=V4): '8b888ddc'
Tue Aug 07 13:39:19 2007 Expected Remote Options hash (VER=V4): '8b888ddc'
Tue Aug 07 13:39:19 2007 UDPv4 link local: [undef]
Tue Aug 07 13:39:19 2007 UDPv4 link remote: x.x.x.x:1194
Tue Aug 07 13:39:28 2007 Peer Connection Initiated with x.x.x.x:1194
Tue Aug 07 13:39:30 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:30 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:31 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:31 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:32 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:32 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:33 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:33 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:34 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:34 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:35 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:35 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:37 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:37 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:38 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:38 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:39 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:39 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:40 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:40 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:41 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:41 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:42 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:42 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:43 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:43 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:44 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:44 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:45 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:45 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:46 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:46 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:47 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:47 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:48 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:48 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:49 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:49 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:50 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:50 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:50 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:50 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:52 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:52 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:53 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:53 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:54 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:54 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:55 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:55 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:56 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:56 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:57 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:57 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:39:58 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:39:58 2007 Route: Waiting for TUN/TAP interface to come up...
Tue Aug 07 13:40:00 2007 TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down
Tue Aug 07 13:40:00 2007 Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv )
Tue Aug 07 13:42:18 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Aug 07 13:42:19 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Aug 07 13:42:19 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Aug 07 13:42:20 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Aug 07 13:42:21 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Aug 07 13:42:22 2007 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)/etc/server.ovpn (I've tried theis with tap0, same thing)
# Which TCP/UDP port should OpenVPN listen on?
port 1194
# TCP or UDP server?
proto udp
# "dev tap" will create an ethernet tunnel.
# try tap0 if tap isn't working
dev tap
# The keepalive directive causes ping-like
# messages to be sent back and forth over
# the link so that each side knows when
# the other side has gone down.
# Ping every 10 seconds, assume that remote
# peer is down if no ping received during
# a 120 second time period.
keepalive 10 120
# Enable compression on the VPN link.
# If you enable it here, you must also
# enable it in the client config file.
;comp-lzo
# The persist options will try to avoid
# accessing certain resources on restart
# that may no longer be accessible because
# of the privilege downgrade.
;persist-key
;persist-tun
# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log
# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 3
# Silence repeating messages. At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20
#Static Key
secret /etc/secret.key/etc/firewall.user
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
iptables -F input_rule
iptables -F output_rule
iptables -F forwarding_rule
iptables -t nat -F prerouting_rule
iptables -t nat -F postrouting_rule
# The following chains are for traffic directed at the IP of the
# WAN interface
iptables -F input_wan
iptables -F forwarding_wan
iptables -t nat -F prerouting_wan
### Open port to WAN
## -- This allows port 22 to be answered by (dropbear on) the router
iptables -t nat -A prerouting_wan -p tcp --dport 22 -j ACCEPT
iptables -A input_wan -p tcp --dport 22 -j ACCEPT
### Port forwarding
## -- This forwards port 8080 on the WAN to port 80 on 192.168.1.2
# iptables -t nat -A prerouting_wan -p tcp --dport 8080 -j DNAT --to 192.168.1.2
# iptables -A forwarding_wan -p tcp --dport 80 -d 192.168.1.2 -j ACCEPT
### DMZ
## -- Connections to ports not handled above will be forwarded to 192.168.1.2
# iptables -t nat -A prerouting_wan -j DNAT --to 192.168.1.2
# iptables -A forwarding_wan -d 192.168.1.2 -j ACCEPT
### OpenVPN
## allow connections from outside
iptables -t nat -A prerouting_wan -p udp --dport 1194 -j ACCEPT
iptables -A input_wan -p udp --dport 1194 -j ACCEPT
## allow input/forwarding for the VPN interfaces, see http://openvpn.net/faq.htm
## also needs ip_forward, see http://openvpn.net/faq.html#ip-forward and http://
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A INPUT -i tap+ -j ACCEPT
iptables -A FORWARD -i tap+ -j ACCEPTClient OpenVPN config:
dev tap
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote x.x.x.x 1194
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Try to preserve some state across restarts.
;persist-key
;persist-tun
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
mute-replay-warnings
# original: secret secret.key
secret key.txt
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
;comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20I don't get an IP address initially and then get a bizzare one after all the messages. I've verified that the DHCP client is on at the two clients I've tested the VPN on and that windows firewall is off. I don't have a 3rd party firewall. Machine A is on a remote network that is open as far as VPN connections go (tested, good) and Machine B is on the internal network (same error messages after modifying the client for float and local IP).
I've been searching all over the net and on this site but just can't find the answer to this issue. I'm assuming that my router is failing to do something on connection, but I don't know what. Any ideas would be greatly appreciated.
(Last edited by kikazzi on 7 Aug 2007, 23:19)
