NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

calaba's avatar
calaba
Guide
Apr 07, 2016

How can I update SoftEther VPN App to Newest Version - ReadyNAS 10400

Hello all - if anyone is interested in knowing the solution mentioned in this topic here then here is it. Unfortunatelly the topic is already closedso cannot add solution directly there.

 

Tested on NETGEAR ReadyNAS 10400.

 

Current version of the VPN App is 1.5 which contains SoftEther VPN Server version 4.12.

 

I successfully updated the SoftEther VPN Server to latest version as of today 4.19 - Build 9605.

 

The solution is to download latest binary build for ARM (my ReadyNAS is ARM v7) and then copy it to the folder /apps/vpnserver/bin/arm/ . In this location there is a compilation script which can rebuild the vpnserver and vpncmd executables (ELF) using the latest binary release of the downloaded SoftEther VPN Server.

 

Steps - ssh root access is required:

 

1) Stop the VPN Server App in ReadyNAS Web UI

2) ssh to the ReadyNAS box (i.e. using PuTTy)

3) Become root by executing "sudo su" if your user is sudoer or logon directly as user root

4) Install build tools to be able to execute the SoftEther build:

 

  • apt-get update
  • apt-get install make libc6-dev gcc gdb libtag1-dev uuid-dev

5) download latest ARM EABI Binary release of the SoftEther VPN Server - in my case 4.19-Build 9605

 

 

6) Untar the archive

  • tar xvf softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-arm_eabi-32bit.tar.gz

The directory vpnserver is created.

 

7) Copy the content of the vpnserver directory (the archive extract) over the files in the directory /apps/vpnserver/bin/arm/

 

8) cd to /apps/vpnserver/bin/arm/ and build the new ELF executables:

 

  • cd  /apps/vpnserver/bin/arm/
  • ./.install.sh - you have to view & accept the license agreement, after that the new executables (vpnserver and vpncmd) should be build using the files extracted from the latest binary release of the SoftEther VPN Server

9) Now copy everything from /apps/vpnserver/bin/arm/ also one level up to /apps/vpnserver/bin (dunno why it's duplicated there)

 

10) make sure you return the ownership of the files to the admin user:

  • cd  /apps/vpnserver
  • chown -R admin:admin bin/

11) Cleanup the extracted vpnserver directory and the downloaded archive

 

12) Start the VPN Server App from ReadyNAS Web UI and Enjoy new version (don't forget to use compatible VPN Client tools)

 

Maybe someone can write fully automated script ... including the download from the SoftEther VPN Server location ;-)

 

21 Replies

  • JennC's avatar
    JennC
    NETGEAR Employee Retired

    Hello calaba,

     

    Thank you for sharing your resolution and/or workaround. We appreciate your contribution to the community. 
     
    Feel free to post any suggestions, questions, recommendations or anything about your NAS that you think needs attention or will help others.
     
    Welcome to the community!
     
    Regards,
    • Thanks for you post. I was able to successfully upgrade the RN516. I wanted to shared these instructions, because it will simply future upgrades, because in the future you will need to change the file name and remove the apt-get install steps.

       

      apt-get update
      apt-get upgrade
      apt-get install build-essential
      apt-get install make libc6-dev gcc gdb libtag1-dev uuid-dev

      mkdir /root/softether
      cd /root/softether

      wget http://www.softether-download.com/files/softether/v4.19-9605-beta-2016.03.06-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz

      tar xvf softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz

      cp -avr /apps/vpnserver/bin/vpn_server.config /root/softether/vpnserver/
      cp -avr /apps/vpnserver/bin/vpn_server.config.save /root/softether/vpnserver/

      make

      1
      1
      1

      cp -avr /root/softether/vpnserver/* /apps/vpnserver/bin/arm
      cp -avr /apps/vpnserver/bin/arm/* /apps/vpnserver/bin
      cd /apps/vpnserver/bin/arm

      ./vpncmd
      3
      check
      exit

      cd /apps/vpnserver
      chown -R admin:admin bin/


      rm -rf /root/softether

      • hoogends's avatar
        hoogends
        Aspirant

        Worked perfectly for my ReadyNAS Pro RNDP600E !!

        Including "cd /root/softether/vpnserver"     :smileyhappy:

         

        Wil do the same on my other NAS (ReadyNAS RNDP6000v2) that stands on remote site
        (My brothers place :smileyhappy:  )

         

        Thanks !!
        PS:  Why is the App not updated ?

  • Thank you, this worked for me (ReadyNAS 314)

     

    did have to add the below before the make command, but this made it very easy to upgrade, thanks

     

    cd /root/softether/vpnserver

     

     

     

     

     

     

    • Laureijs's avatar
      Laureijs
      Aspirant

      I used the combined info above on a ReadyNAS 516:

       

      apt-get update
      apt-get upgrade (don't do this, it is not recommended by Netgear and can do damage).
      apt-get install build-essential
      apt-get install make libc6-dev gcc gdb libtag1-dev uuid-dev

      mkdir /root/softether
      cd /root/softether

      Wget http://www.softether-download.com/files/softether/v4.25-9656-rtm-2018.01.15-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.25-9656-rtm-2018.01.15-linux-x64-64bit.tar.gz

       

      tar xvf softether-vpnserver-v4.25-9656-rtm-2018.01.15-linux-x64-64bit.tar.gz

      cp -avr /apps/vpnserver/bin/vpn_server.config /root/softether/vpnserver/
      cp -avr /apps/vpnserver/bin/vpn_server.config.save /root/softether/vpnserver/

      cd /root/softether/vpnserver

       

      make

      1
      1
      1

      cp -avr /root/softether/vpnserver/* /apps/vpnserver/bin/arm
      cp -avr /apps/vpnserver/bin/arm/* /apps/vpnserver/bin
      cd /apps/vpnserver/bin/arm

      ./vpncmd
      3
      check
      exit

      cd /apps/vpnserver
      chown -R admin:admin bin/


      rm -rf /root/softether

       

       

      just to confirm.

       

      • StephenB's avatar
        StephenB
        Guru

        Laureijs wrote:

        apt-get upgrade

         


        This particular step is not recommended, and can create issues with the ReadyNAS application.

         

        So I suggest skipping that one.

  • Hi i try to use this Tutorial on my ReadyNas 212. But it not works.

    i can not run the command "make"

     

    here ist what i have:

     

    root@Mando-NAS:~# root@Mando-NAS:~# apt-get install build-essential
    -bash: root@Mando-NAS:~#: command not found
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    build-essential : Depends: gcc (>= 4:10.2) but it is not going to be installed
    Depends: g++ (>= 4:10.2) but it is not going to be installed
    Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

     

    is there any way to add new source to sourcelist to get the archive package for build essential?

     

    my source list:

     

    deb https://apt.readynas.com/packages/readynasos 6.10.8 updates apps main

    deb http://mirrors.kernel.org/debian jessie main
    deb http://security.debian.org/ jessie/updates main
    deb http://archive.debian.org/debian etch main
    deb http://mirrors.edge.kernel.org/debian/pool/main/b/build-essential/ stable main
    deb https://deb.sipwise.com/debian/pool/main/d/dpkg/ stabel main
    deb https://cloudfront.debian.net/debian-archive/debian/pool/main/d/dpkg/ jessie main
    deb http://ftp.us.debian.org/debian stable main contrib
    deb http://old.kali.org/kali/pool/main/m/make-dfsg/ jessie main

     

      • HellSpawn's avatar
        HellSpawn
        Tutor

        Hi, tanks for a quick answer. I follow instruction in the tread. Install build essentianl was without error, but after i want to update the softether vpn in step where i should use command "make" i have follow errors:

         

        /usr/bin/ld: failed to merge target specific data of file lib/libncurses.a(lib_slkclear.o)
        /usr/bin/ld: error: Source object lib/libncurses.a(lib_slktouch.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libncurses.a(lib_slktouch.o)
        /usr/bin/ld: error: Source object lib/libz.a(compress.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(compress.o)
        /usr/bin/ld: error: Source object lib/libz.a(uncompr.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(uncompr.o)
        /usr/bin/ld: error: Source object lib/libz.a(deflate.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(deflate.o)
        /usr/bin/ld: error: Source object lib/libz.a(inflate.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(inflate.o)
        /usr/bin/ld: error: Source object lib/libz.a(inftrees.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(inftrees.o)
        /usr/bin/ld: error: Source object lib/libz.a(trees.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(trees.o)
        /usr/bin/ld: error: Source object lib/libz.a(zutil.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(zutil.o)
        /usr/bin/ld: error: Source object lib/libz.a(adler32.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(adler32.o)
        /usr/bin/ld: error: Source object lib/libz.a(crc32.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(crc32.o)
        /usr/bin/ld: error: Source object lib/libz.a(inffast.o) has EABI version 0, but target vpnserver has EABI version 5
        /usr/bin/ld: failed to merge target specific data of file lib/libz.a(inffast.o)
        collect2: error: ld returned 1 exit status
        Makefile:20: recipe for target 'main' failed
        make[1]: *** [main] Error 1
        make[1]: Leaving directory '/root/vpnserver'

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More