ソースからインストール
環境
gentto raspi64に Softether をインストール
手順
git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git
cd SoftEtherVPN_Stable
./configure && make -j5 && sudo make installインストール後のファイル構成
/usr/{vpnbridge, vpnclient, vpncmd, vpnserver} ディレクトリが作成され、 例えば/usr/vpncmd配下には hamcore.se2, vpncmd など必要なファイルが設置される。
2021/08時点では設定ファイルもこのディレクトリ配下にいくつか置かれている。
この hamcore.se2のパーミッションは
-rw------- 1 root root 2009296 8月 18 12:33 hamcore.se2なので、rootで実行する必要がある。
sudo vpncmdrootで実行しないと下記のエラーがでた。
-- Alert: SoftEther VPN Kernel --
Fatal Error: The file "hamcore.se2" is missing or broken.
Please check hamcore.se2.
(First, reboot the computer. If this problem occurs again, please reinstall VPN software files.)コマンドサーチパスの/usr/bin 配下に下記がインストールされる。
- vpnserver
- vpnbridge
- vpnclient
- vpncmd
自動起動
Gentoo の起動終了スクリプトを用意する
/etc/init.d/softether を下記の内容で作る。
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="softether daemon"
description="stop/start vpnserver"
command=/usr/bin/vpnserver
depend() {
need net
use logger
}
start() {
vpnserver start
}
stop() {
vpnserver stop
}下記のように有効にする
sudo chmod 755 /etc/init.d/softether && sudo rc-update add softether default参考
ハンドブック:X86/ワーキング/Initscripts Gentooの起動スクリプトの書き方が参考になる。