1
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?

More than 5 years have passed since last update.

SoftEtherサーバー構築(memo)

Last updated at Posted at 2018-12-13
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
1
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
1
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?