#author("2020-09-26T23:53:24+09:00","default:ichinomoto","ichinomoto")
#author("2020-09-26T23:53:41+09:00","default:ichinomoto","ichinomoto")
[[soft]]

* softether [#o3368227]

** ビルドしてインストール [#d99f908a]
参考~
[[https://qiita.com/Shachihoko/items/543eea4c95153c719224]]

ソースを取得
 git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable
ビルドに必要なパッケージ
 sudo apt install build-essential libreadline-dev libssl-dev libncurses-dev libz-dev
configure
 ./configure
armの場合は-m64のオプションを削除する
armの場合はMakefileから-m64のオプションを削除する
 sed -i -e s/ -m64//g Makefile
コンパイルとインストール
 make -j4
 sudo make install

**自動起動 [#oacfc7d3]
/etc/systemd/system/vpnserver.service を以下の内容で作成
 [Unit]
 Description=SoftEther VPN Server
 After=network.target network-online.target
 
 [Service]
 ExecStart=/usr/bin/vpnserver start
 ExecStop=/usr/bin/vpnserver stop
 Type=forking
 RestartSec=3s
 
 [Install]
 WantedBy=multi-user.target

有効化
 systemctl start vpnserver
 systemctl enable vpnserver

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS