SoftEther VPN for OpenWrt[zt]+20170105更新

20170105更新:刷最新的openwrt snapshots,然后直接用opkg update, opkg install softethervpn就有啦,不用自已编译这么傻傻的。不过,看完了opkg里的介绍:

softethervpn 4.22-9634-1 4070550 SoftEther VPN ("SoftEther" means "Software Ethernet") is one of the world's most powerful and easy-to-use multi-protocol VPN software developed as an academic project from University of Tsukuba, Japan. SoftEther VPN has strong compatibility to today's most popular VPN products among the world. It has the interoperability with OpenVPN, L2TP, IPsec, EtherIP, L2TPv3, Cisco VPN Routers and MS-SSTP VPN Clients. SoftEther VPN is the world's only VPN software which supports SSL-VPN, OpenVPN, L2TP, EtherIP, L2TPv3 and IPsec as a single VPN software. SoftEther VPN is not only an alternative VPN server to existing VPN products (OpenVPN, IPsec and MS-SSTP), but has also original strong SSL-VPN protocol to penetrate any kinds of firewalls. Ultra-optimized SSL-VPN Protocol of SoftEther VPN has very fast throughput, low latency and firewall resistance.

然后感觉这东西就是一个xx\yy\zz\aa\bb的大全,说实在,可能还没我一个openvpn这么灵活,同时开了几个server和几个client去组一个大网.....

以下原文是之前转自:https://github.com/el1n/OpenWRT-package-softether

Your router is if ar71xx, you do not need build steps.
You can get binary package from http://b.mikomoe.jp/.

If you are japanese or could read japanese, Visit my blog.

Compile

  1. Install the packages required to compile

    For debian.

    # apt-get install -y subversion make gcc g++ libncurses5-dev libghc-zlib-dev gawk bzip2 patch
    
  2. Get OpenWrt SDK and prepare for compile

    # svn co svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09
    # cd attitude_adjustment_12.09
    

    SoftEther VPN requires libiconv, But SDK did not including libiconv.
    Therefore, You need download libiconv for compile.

    # svn export svn://svn.openwrt.org/openwrt/packages/libs/libiconv-full@29638 package/libiconv-full
    

    SoftEther VPN uses SHA algorithm.
    For default, it is not enabled.
    You will need to enabled this.

    # sed -i 's/no-sha0//' package/openssl/Makefile
    
  3. SDK settings

    # make defconfig
    # make menuconfig
    

    Change "Target System" for your OpenWrt.
    Visit "Network/VPN/SoftEther VPN", Check what you need.

  4. Build the package

    # make prepare
    # make package/softethervpn/compile V=99
    

    You can find packages from ./bin directory if compile succeed.

  5. Install to OpenWrt

    SoftEther VPN need some packages.

    • zlib
    • libpthread
    • librt
    • libreadline
    • libncurses
    • libiconv-full

    And libopenssl, But can not use SHA algorithm in official build.
    So install the libopenssl package that was build together with SoftEther VPN.

    However results in "md5sum mismatch" error.
    Delete the package list once to avoid this.

    # rm /var/opkg-lists/attitude_adjustment
    

猜你喜欢

转载自blog.csdn.net/d9394952/article/details/87868714
VPN