![]() |
![]() OpenVPN tls-server running under OpenWRT on a WRT54G (V1.1)I was angry about the floating point exceptions gotten from openvpn imediately after starting openvpn in tls_server mode. As I have read the comment of cmeerw in the OpenWRT forum I tried to do it as christof had suggested it. With that proceeding I got success, and that is what I am describing on this page here. If you just want to install the packages jump here. Creating a OpenVPN packageFirst of all I've built the OpenWRT system on my linux distribution. There was no problem to build up the main flashable module, which I have built and installed as described on the OpenWRT main pages. But I've got some problems to build some default packages. Because of these weren't necessary in my installation I've kicked them out by changing the PACKAGES target in the main Makefile. This is my current setting of PACKAGES in the main Makefile located in buildroot.
OpenVPN isn't a default package of OpenWRT. So I had to produce some required but missing files for building the desired package. First this is openvpn.mk, which is a partition of the makefile and used to build openvpn and secondly the descibing control which is used as description of the installable ipkg file.
The openvpn.mk I am providing here is a derivate of the openvpn.mk which is part of the downloadable OpenWRT distribution already! After installing the two files in the named directories I've altered the Makefile. I have added the openvpn in the Packages target as shown above.
After the work is done you can find all packages, including the openvpn_2.0_beta15_mipsel.ipk file, in the packages subdirectory. Now you should install the packages of your desire onto the WRT54G. It's important to do the installation for the libssl package too to get the last step of the next section working. The installation is automatically triggered by the dependencies of openvpn so I should better say: leave the libssl package installed on the WRT54G! Creating a working libSSL packageThe libSSL package wich was created in the OpenWRT distribution isn't usable in connection with OpenVPN because of it creates the floating point exception as described above. To get the system running I followed the hint of Christof Meerwald. This part of the installation is extremely dirty (sometimes you have to close both eyes to get success) but I think it's OK if you don't plan to update your system every week or even more often. To get the working libssl we only have to do some of the steps outlined on that page. The following box is a summary of that what I have done (hopefully I haven't forget too much to mention ;-)) ). To avoid any mixups: "I am using version 2.07.1 of the linksys distribution and openssl version 0.9.7d just as OpenWRT does! That is the reason why I distribute a different openssl-wrt54g.diff.
Do it as simple as possibleIf you trust my skills you can download the two packages from my site. Just alter your ipkg.conf file as described on the OpenWRT pages. Create the new entry (show below) in the topmost position.
To install the package do:
DisclaimerAlthough I have made and documented everything with care there are probably some bugs on this page or the downloadable stuff. This is the reason why I don't give any warranty of any kind! If you find a bug or if you have any suggestions for improvement or changes of the described configuration feel free to contact me! Cheers, ![]() |