Changes between Version 3 and Version 4 of OpenvpnDevelPackageForOpenWRT
- Timestamp:
- 09/23/11 16:57:32 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenvpnDevelPackageForOpenWRT
v3 v4 1 = OpenVPN-devel package for Open VPN=1 = OpenVPN-devel package for OpenWrt = 2 2 3 OpenW RTis a very small Linux distribution for routers, initially the Cisco/Linksys "WRT 54 GL", thus the name.3 OpenWrt is a very small Linux distribution for routers, initially the Cisco/Linksys "WRT 54 GL", thus the name. 4 4 5 OpenWRTcomes with an OpenVPN package based on the mainstream 2.1 release (as of 2010/06/27).5 !OpenWrt comes with an OpenVPN package based on the mainstream 2.1 release (as of 2010/06/27). 6 6 7 If you want IPv6 support or any of the other features in the development tree, you have to build your own package, based on the openvpn-devel sources. Given that OpenWRT packages are not for standard i386/amd64 CPUs but usually some sort of MIPS system, you need a cross-compilation environment and special tools - but that's all already provided by the OpenWRTfolks, so you just need to add a few bits to add your own package.7 If you want IPv6 support or any of the other features in the development tree, you have to build your own package, based on the openvpn-devel sources. Given that !OpenWrt packages are not for standard i386/amd64 CPUs but usually some sort of MIPS system, you need a cross-compilation environment and special tools - but that's all already provided by the !OpenWrt folks, so you just need to add a few bits to add your own package. 8 8 9 Update: 2010/08/03: there is an openvpn-devel package in the official OpenW RTpackage tree. So far it's not available as binary, so this document explains how to checkout the source tree and build from there.9 Update: 2010/08/03: there is an openvpn-devel package in the official OpenWrt package tree. So far it's not available as binary, so this document explains how to checkout the source tree and build from there. 10 10 11 11 = how to build = 12 12 13 13 14 1. get the OpenWRT source tree from OpenWRT SVN (do this on a Linux system, as a normal user, no root permissions needed) - this is for OpenWRT10.03 ("backfire"), adapt for other branches as needed:14 1. get the !OpenWrt source tree from !OpenWrt SVN (do this on a Linux system, as a normal user, no root permissions needed) - this is for !OpenWrt 10.03 ("backfire"), adapt for other branches as needed: 15 15 {{{ 16 16 svn co svn://svn.openwrt.org/openwrt/branches/backfire/ 17 17 }}} 18 18 19 2. get the OpenWRTpackage tree from SVN and "install" (put all the symlinks where they are needed):19 2. get the !OpenWrt package tree from SVN and "install" (put all the symlinks where they are needed): 20 20 {{{ 21 21 cd backfire … … 42 42 }}} 43 43 44 * in the "Target System" menu, select the correct OpenWRT version for your hardware (check the openwrt.net pages for your router type, one example would be "TP-Link TL1043ND -> ar71xx -> Atheros AR71xx/AR7240/AR913x"). Since we do not want to build a bootable OpenWRT itself, just an OpenVPN package, it's not important to get this 100% right - having the right CPU version (ar71xx in this example) is what counts. The output of "opkg install $somepackage" on your OpenWRTinstallation will tell you the architecture type, in the .ipk file name.45 * go to "Network" -> "VPN" and check <M> "openvpn-devel" (pre -requisites like lzo and zlib will be autoselected)44 * in the "Target System" menu, select the correct !OpenWrt version for your hardware (check the openwrt.net pages for your router type, one example would be "TP-Link TL1043ND -> ar71xx -> Atheros AR71xx/AR7240/AR913x"). Since we do not want to build a bootable !OpenWrt itself, just an !OpenWrt package, it's not important to get this 100% right - having the right CPU version (ar71xx in this example) is what counts. The output of "opkg install $somepackage" on your !OpenWrt installation will tell you the architecture type, in the .ipk file name. 45 * go to "Network" -> "VPN" and check <M> "openvpn-devel" (prerequisites like lzo and zlib will be autoselected) 46 46 * then "exit" -> "exit" -> "exit" -> "save config -> yes" 47 47 … … 82 82 = Installing the package = 83 83 84 Login to your OpenWRTrouter, ftp/wget the package to /tmp, and run "opkg install":84 Login to your !OpenWrt router, ftp/wget the package to /tmp, and run "opkg install": 85 85 86 86 {{{