Softetherを立ち上げる。
・Linux Mintをインストールする(xfce)
・pc名:vpnsvr
📝 SoftEther VPN Server 構築手順書(Linux Mint / Windows 管理)
📌 環境情報
- Linux Mint PC 名:vpnsvr
- Linux Mint IP:192.168.11.18
- SoftEther 管理は Windows から GUI(Server Manager)で実施
1️⃣ Linux Mint に SoftEther をインストール
1-1. 必要パッケージのインストール
sudo apt update sudo apt install -y build-essential gcc make
1-2. SoftEther のソースコードを取得
cd ~ wget https://github.com/SoftEtherVPN/SoftEtherVPN/archive/refs/heads/master.zip unzip master.zip cd SoftEtherVPN-master
1-3. ビルド
./configure make sudo make install
1-4. 実行ファイルの権限設定
sudo chmod 600 /usr/local/vpnserver/* sudo chmod 700 /usr/local/vpnserver/vpnserver sudo chmod 700 /usr/local/vpnserver/vpncmd
2️⃣ SoftEther VPN Server の起動
2-1. 起動
sudo /usr/local/vpnserver/vpnserver start
2-2. 停止(必要時)
sudo /usr/local/vpnserver/vpnserver stop
2-3. 動作確認
sudo /usr/local/vpnserver/vpncmd
→ メニューが表示されれば OK。
3️⃣ Windows から SoftEther を管理する
3-1. Windows に SoftEther VPN Server Manager をインストール
SoftEther 公式サイト → Windows →
VPN Server Manager(GUI) をインストール。
3-2. Mint の SoftEther に接続
- Windows で「SoftEther VPN Server Manager」を起動
- 「新しい接続設定」
- 接続先 IP:192.168.11.18
- ポート:443
- 管理パスワードを入力(Mint 側で設定)
4️⃣ 仮想 HUB の作成(Windows GUI)
- 「仮想 HUB の管理」
- 「新しい仮想 HUB」
- HUB 名を入力(例:
DEFAULT) - 作成後、以下を設定
- ユーザー作成
- SecureNAT 有効化
- L2TP/IPsec 設定(必要時)
5️⃣ UFW(Linux Mint)で必要ポートを開放
SoftEther が使う代表的なポート:
| 用途 | ポート |
|---|---|
| 管理ポート | 443/tcp |
| SoftEther 独自プロトコル | 992/tcp |
| OpenVPN 互換 | 1194/udp |
| L2TP/IPsec | 500/udp, 4500/udp |
| EtherIP | 5555/tcp |
UFW 設定コマンド
sudo ufw allow 443/tcp sudo ufw allow 992/tcp sudo ufw allow 1194/udp sudo ufw allow 5555/tcp sudo ufw allow 500/udp sudo ufw allow 4500/udp sudo ufw reload
6️⃣ SoftEther の自動起動設定(systemd)
6-1. サービスファイル作成
sudo nano /etc/systemd/system/vpnserver.service
内容(そのまま貼り付け)
[Unit] Description=SoftEther VPN Server After=network.target [Service] Type=forking ExecStart=/usr/local/vpnserver/vpnserver start ExecStop=/usr/local/vpnserver/vpnserver stop ExecReload=/usr/local/vpnserver/vpnserver restart [Install] WantedBy=multi-user.target
保存:Ctrl+O → Enter
終了:Ctrl+X
6-2. systemd を読み込み
sudo systemctl daemon-reload
6-3. 自動起動を有効化
sudo systemctl enable vpnserver
6-4. 起動
sudo systemctl start vpnserver
6-5. 状態確認
systemctl status vpnserver
7️⃣ 動作確認
Windows から接続確認
- Server Manager で 192.168.11.18 に接続できるか
- 仮想 HUB が表示されるか
- SecureNAT が ON になっているか
- L2TP/IPsec 設定が反映されているか
Linux Mint 側
sudo systemctl status vpnserver sudo ufw status







