[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] tunnel stops working - write to UDP: Invalid argument (errno=22)


  • Subject: [Openvpn-users] tunnel stops working - write to UDP: Invalid argument (errno=22)
  • From: rob <rapodaca@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 15 Sep 2003 08:49:37 -0400

I have set up a tunnel between a T-1 and a DSL account. The tunnel has stopped working two times. I turned up logging after the first time. The only strangeness I see is the above error. Normally the logs say 'write to UDP returned 60' or similar. While the tunnel is not working, it 'appears' to be up and running but no traffic can be sent across. What I mean by 'appears' is that the tun device is up, the service is running, netstat reports that the service is listening on 5000, and the route appears in the route table.

Restarting openvpn does not bring the tunnel back. I stumbled upon a method to re-establish the tunnel by establishing a new tunnel on a separate DSL connection with the T-1 connection. This tunnel operated immediately. Then I changed the configuration back to re-establish the tunnel with the original DSL connection and it worked. I don't know how or why.

Both times the tunnel became unavailable after a somewhat long period of inactivity (weekend). This leads me to believe that the problem could be related to the inactivity. Would 'persist-tun' do anything for me? I'm not sure exactly what this option does, perhaps someone could explain.


If anyone has any ideas of what more I can check or has any helpful information, I surely would appreciate it.

My configuration:

T-1 connection
--------------
- openvpn box is behind firewall. port forwarding from firewall to box
- Static IP address

dev tun0
local xxxxxxx
remote xxxxxxxx
ifconfig 10.1.0.1 10.1.0.2
up /etc/openvpn/office2.up
secret /etc/openvpn/static.key
user nobody
group nobody
comp-lzo
ping 15


DSL connection
---------------
- openvpn box is on the firewall (shorewall with appropriate rules for openvpn)
- Static IP address

dev tun0
local xxxxxxx
remote xxxxxxxx
ifconfig 10.1.0.2 10.1.0.1
up /etc/openvpn/office1.up
secret /etc/openvpn/static.key
user nobody
group nobody
comp-lzo
ping 15



Both boxes are running linux kernel 2.4.20 and openvpn 1.3.1 from source.

Thanks,
-- 
rob

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users