Here's my situation. I setup a bridged pre-shared key Openvpn system between two Openwrt running routers (have to do the bridged system for the applications that will be used over the network) which are currently both behind another router on my lan for testing and setup purposes. One router is setup as a server and the other as the client. The client connects successfully to the server and I can ping a computer on the server side from a computer on the client side and vice versa. However, every so often, the server will lose connection with the client. During this point, I can't ping anything on the client side, and I get this on the server:
Thu Jul 12 13:06:31 2007 Inactivity timeout (--ping-restart), restarting
Thu Jul 12 13:06:31 2007 TCP/UDP: Closing socket
Thu Jul 12 13:06:31 2007 Closing TUN/TAP interface
Thu Jul 12 13:06:31 2007 SIGUSR1[soft,ping-restart] received, process restarting
Thu Jul 12 13:06:31 2007 Restart pause, 2 second(s)
Thu Jul 12 13:06:33 2007 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 12 13:06:33 2007 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 12 13:06:33 2007 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 12 13:06:33 2007 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 12 13:06:33 2007 TUN/TAP device tap0 opened
Thu Jul 12 13:06:33 2007 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:4 ET:32 EL:0 ]
Thu Jul 12 13:06:33 2007 Local Options hash (VER=V4): '8b888ddc'
Thu Jul 12 13:06:33 2007 Expected Remote Options hash (VER=V4): '8b888ddc'
Thu Jul 12 13:06:33 2007 UDPv4 link local (bound): [undef]:1194
Thu Jul 12 13:06:33 2007 UDPv4 link remote: [undef]
Now, if I try to ping the server from the client, it will reconnect on its own and I then get these two messages on the server:
Thu Jul 12 13:06:57 2007 Peer Connection Initiated with 192.168.0.5:2052
Thu Jul 12 13:06:58 2007 Initialization Sequence Completed
It will sometimes reconnect without any pinging as well. Now, the really strange part of this is, if lets say I setup a network share over the vpn tunnel from a server machine to a client machine behind the router, it won't lose connection (as of this point, it's been running with no reconnects for quite a while). Obviously by having the network share setup, it sends a bit of traffic over the tunnel every so often. Is there some form of configuration option that tells openvpn to reconnect if there's no traffic over the tunnel? Or is there something else going on here?
Also, to give you more of an idea of my setup, I'm using a combination of these two tutorials:
My setup consists mostly all of the first one except I used the second's suggestion to setup the bridge on both the server and the client routers.
Thanks for the help!
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.