Connection: via IPv4
Your IP : 3.21.162.87
In English
Categories: LinuxServer

Softether VPN Server(Stable)をインストール・アップデートするスクリプト for Ubuntu

概要

Ubuntu向けのSoftether VPN Server(Stable)をビルドからインストール、Systemdの設定までを自動で行うスクリプトです。また、このスクリプトでインストールしたSoftether VPN Serverを最新版にアップデートすることができます。

動作確認環境は Ubuntu18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS です。

手順

以下のスクリプトを実行してください。一部操作にroot権限が必要なため実行時にsudoからパスワードを聞かれることがあります。

wget -O - https://www.okin-jp.net/patch/sevpn/build-ubuntu.sh | bash

以下のように表示されればインストール成功です。

--------------------------------------------------------------------
Installation completed successfully.

Execute 'vpnserver start' to run the SoftEther VPN Server background service.
Execute 'vpnbridge start' to run the SoftEther VPN Bridge background service.
Execute 'vpnclient start' to run the SoftEther VPN Client background service.
Execute 'vpncmd' to run SoftEther VPN Command-Line Utility to configure VPN Server, VPN Bridge or VPN Client.
--------------------------------------------------------------------

Created symlink /etc/systemd/system/multi-user.target.wants/softether-vpnserver.service → /etc/systemd/system/softether-vpnserver.service.
---- Install / Update DONE ----
● softether-vpnserver.service - SoftEther VPN Server
     Loaded: loaded (/etc/systemd/system/softether-vpnserver.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-11-15 10:40:36 UTC; 1s ago
    Process: 2420 ExecStart=/usr/vpnserver/vpnserver start (code=exited, status=0/SUCCESS)
   Main PID: 2424 (vpnserver)
      Tasks: 33 (limit: 6945)
     Memory: 18.2M
        CPU: 170ms
     CGroup: /system.slice/softether-vpnserver.service
             ├─2424 /usr/vpnserver/vpnserver execsvc
             └─2425 /usr/vpnserver/vpnserver execsvc

Nov 15 10:40:35 tmpvpns systemd[1]: Starting SoftEther VPN Server...
Nov 15 10:40:36 tmpvpns vpnserver[2420]: The SoftEther VPN Server service has been started.
Nov 15 10:40:36 tmpvpns vpnserver[2420]: Let's get started by accessing to the following URL from your PC:
Nov 15 10:40:36 tmpvpns vpnserver[2420]: https://192.168.0.163:5555/
Nov 15 10:40:36 tmpvpns vpnserver[2420]:   or
Nov 15 10:40:36 tmpvpns vpnserver[2420]: https://192.168.0.163/
Nov 15 10:40:36 tmpvpns vpnserver[2420]: Note: IP address may vary. Specify your server's IP address.
Nov 15 10:40:36 tmpvpns vpnserver[2420]: A TLS certificate warning will appear because the server uses self signed certificate by default. That is natural. Continue with ignoring the TLS warning.
Nov 15 10:40:36 tmpvpns systemd[1]: Started SoftEther VPN Server.

 

付録

インストールに必要なリソース/時間について

LXDコンテナ (Ryzen 7 5700X 0.7vcpu / Memory 256MB) 環境で計測

インストール完了までの時間 約1分30秒
ストレージ インストール中最大: 370MB
インストール後最小: 310MB

インストール先やSystemdについて

インストール先 /usr/vpnserver
(/opt/vpnserver にもシンボリックリンク)
systemd ユニット名 softether-vpnserver
vpncmd パス /usr/local/bin/vpncmd

オプション一覧

オプション 説明
-4 カスケード接続などVPN Serverから確立する通信がIPv4優先になります。VPNクライアントからの通信には影響しません。既定値は無効(IPv6優先)です。

 

This post was last modified on 2023年12月6日 3:15 PM

Share
Published by
おきん(blog)

Recent Posts

[メモ]JellyfinでEntraID認証

概要 メディアサーバーのJel…

4週間 ago

MastodonでhCaptchaを使う

概要 Mastodonサーバー…

2か月 ago

Redisを6.0から7.xに更新する

概要 Ubuntu 22.04…

3か月 ago

CodiMDでEntra IDを使う

出来ること CodiMDのログ…

3か月 ago

CloudflareをDDNSみたいに使う

やりたいこと Cloudfla…

3か月 ago

This website uses cookies.