0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【2025年01月版】Ubuntu24.04 で SoftEther VPN Bridgeのインストール

Last updated at Posted at 2025-01-09

はじめに

いままでつかっていた

Raspberry Pi 4B上のUbuntu20.04のSoftEther VPN Bridgeを、
Proxmox上のVMのUbuntu24.04に

変更してみたメモ

前提

新規でVPN Bridgeの設定をGUIから行うか、
既存の接続できるSoftEther VPN Bridgeの設定ファイル(/usr/vpnbridge/vpn_bridge.conf)は存在する前提

$ uname -a
Linux vpnbridge 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec  5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

VPN Bridgeのインストール

必要なソフトウェアのインストール

$ sudo apt install gcc make unzip -y 
$ sudo apt install build-essential -y
$ sudo apt install libreadline-dev libssl-dev libncurses-dev libz-dev -y

作業ディレクトリの作成

mkdir work
cd $_

gitからソースの取得

git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git

プログラムの修正

$ cd SoftEtherVPN_Stable/
$ vim src/Cedar/Server.c

src/Cedar/Server.c 内の、
bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c) のreturn を false にする

$ diff src/Cedar/Server.c src/Cedar/Server.c.back
10924,10925c10924
< 	//return ret;
< 	return false;
---
> 	return ret;

ビルドとインストール

$ chmod +x ./configure
$ ./configure 
$ make
$ sudo make install

設定ファイルの作成

sudo vim /usr/vpnbridge/vpn_bridge.config

サービス化

$ sudo vim /etc/systemd/system/vpnbridge.service
$ cat /etc/systemd/system/vpnbridge.service 
[Unit]
Description=SoftEther VPN Bridge
After=network.target network-online.target

[Service]
ExecStart=/usr/bin/vpnbridge start
ExecStop=/usr/bin/vpnbridge stop
Type=forking
RestartSec=4s

[Install]
WantedBy=multi-user.target
$
$ sudo systemctl enable --now vpnbridge.service 
$ sudo systemctl status vpnbridge.service

Bridgeの設定

Bridgeするインターフェイスなどは、SoftEtherのGUIツールを使って行うと楽
マシンを移動した後は、ローカルブリッジ設定のインターフェイスを修正する必要がある

image.png

さいごに

かんたんでしたね

リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?