SoftEtherのバージョンアップ方法、すっかり忘れてしまっていたので、メモを残しておこうと思います。
このバージョンアップによって、設定済みの情報が上書きされることはないですが、
作業前にバックアップ(スナップショットなど)を取得することをオススメします。
前提
-
バージョンアップする環境
Amazon EC2 (Amazon Linux2) -
現在稼働中のSoftetherモジュールのパス
/user/local/vpnserver -
バージョンアップに使用するモジュールのダウンロード先
/tmp/vpn
#1. 現在のバージョンの確認
vpncmdを使用し、現在のバージョンを確認する。vpncmd
は、vpnserverフォルダの直下にある。
$ ./vpncmd /help | grep Version
Version 4.41 Build 9787 (English)
#2. モジュールを入手
SoftEtherのサイトより、バージョンアップで使用するモジュールをダウンロードする。
$ wget https://www.softether-download.com/files/softether/v4.42-9798-rtm-2023.06.30-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.42-9798-rtm-2023.06.30-linux-x64-64bit.tar.gz
#3. ダウンロードしたモジュールの解凍
$ tar -zxvf softether-vpnserver-v4.42-9798-rtm-2023.06.30-linux-x64-64bit.tar.gz
#4. Makeコマンドの実行
tar.gzを解凍すると、vpnserver
というフォルダができるので、その下でMake
コマンドを実行する
$ cd vpnserver
$ make
・・・
*** PacketiX VPN Server HTML5 Web Administration Console (NEW) ***
This VPN Server / Bridge has the built-in HTML5 Web Administration Console.
After you start the server daemon, you can open the HTML5 Web Administration Console is available at
https://127.0.0.1:5555/
or
https://ip_address_of_the_vpn_server:5555/
This HTML5 page is obviously under construction, and your HTML5 development contribution is very appreciated.
--------------------------------------------------------------------
make[1]: Leaving directory `/tmp/vpn/vpnserver'
$
#4. モジュールのコピー
'Make'したモジュールを、現在稼働しているvpnserverフォルダへコピーする。
$ cp -Rf ./* /user/local/vpnserver
#5. 適用後のバージョンの確認
$ ./vpncmd /help | grep Version
Version 4.42 Build 9798 (English)
#6. サービスの再起動
$ sudo systemctl restart vpnserver
以上で終了です。