LoginSignup
1
1

More than 5 years have passed since last update.

Softether VPNをUbuntu16.04LTSに導入

Last updated at Posted at 2017-03-15

Softether VPN ダウンロード

ソースをダウンロード

wgetを使うか,ブラウザでダウンロードしてscpでサーバに送る.

展開,make

$ tar xzf vpnserver-****-rtm-linux-x86.tar.gz
# mv vpnserver /usr/local/
# cd /usr/local/vpnserver
# make

makeコマンドの後,Licenseの同意を選択する.

実行ファイルのパーミッションを変える.

# chmod 0700 vpnserver
# chmod 0700 vpncmd

VPNサーバの設定(Windowsから)

サーバサイドではコマンドラインで設定できる...が,ゆとりなのでWindowsからGUIで設定.
参考URL 2.の通りに設定.

VPN Serverのデーモン化

/etc/systemd/system/vpnserver.serviceに以下の通りに記述.

[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

[Install]
WantedBy=multi-user.target

vpnserver.serviceを置いたら,vpnserverの起動

# systemctl start vpnserver

vpnserverを自動起動設定

# systemctl enable vpnserver

参考URL

  1. http://ja.softether.org/4-docs/1-manual/7/7.3
  2. http://vhh.gatsu-neko.mydns.jp/2014/05/ubuntu-serverut-vpn%E3%81%AB%E3%82%88%E3%82%8Bl2tpipsec%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%AE%E6%A7%8B%E7%AF%89/
  3. http://blog.204504byse.info/wiki.cgi?page=Systemd%CD%D1SoftEther%C0%DF%C4%EA%A5%D5%A5%A1%A5%A4%A5%EB
1
1
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
1