1. タイムゾーン修正
sudo timedatectl set-timezone Asia/Tokyo
2. パッケージ最新化
sudo yum -y update
3. 必要なパッケージをインストール
sudo yum -y install git gcc
※ ソースをダウンロード
1. 解凍
cd ~/
curl -L -O https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.28-9669-beta/softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
tar zxvf softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
cd vpnserver
2. ビルド
yes 1 | make
cd ..
1. 設置場所を移動
sudo mv vpnserver /opt/vpnserver
2. systemd用の起動ファイルを作成
sudo vi /etc/systemd/system/vpnserver.service
[Unit]
Description=Softether VPN Server Service
After=network.target
[Service]
Type=forking
User=root
ExecStart=/opt/vpnserver/vpnserver start
ExecStop=/opt/vpnserver/vpnserver stop
Restart=on-abort
WorkingDirectory=/opt/vpnserver/
ExecStartPre=/sbin/ip link set dev eth0 promisc on
[Install]
WantedBy=multi-user.target
3. パーミッション変更
sudo chmod 755 /etc/systemd/system/vpnserver.service
4. 起動ファイルを読み込み
sudo systemctl daemon-reload
5. SoftEtherを起動
sudo systemctl start vpnserver
6. SoftEtherの自動起動を設定
sudo systemctl enable vpnserver
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme