OpenWrt Forum Archive

Topic: Problem with openvpn acting as server

The content of this topic has been archived on 25 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

Install openvpn on an openwrt box, copied over a working openvpn files and tried to start it up, the client connections worked well not a problem, the server fail - doesn't see the tls packets ???  Any one else using openvpn in server mode on a 2.6 kamikaze ?

Alex

yes

in server or client mode ? secret key or x509

So I am able to get it working in udp mode, but not tcp mode, and I am using x509 certificates.

I have done some more testing and it seems like epoll is the problem with tcp-server on openvpn 2.09 and trunk [9455], 2.6 bcrm on atheros.  When i changed to udp it worked fine. so I have recompiled the openvpn package to not try and use epoll and it works fine!  I will file a bug report

I have come across this problem again on 7.09 using openvpn in tcp server mode with x509 certs.

I am looking to see if any one else is having the same problem, so I can judge whether its my setup or a problem with the system.

The discussion might have continued from here.