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?

More than 1 year has passed since last update.

お互いにグローバルIP持ってないけど、VPN接続する(softether)

Posted at

VPNserverの構築

インストール

aptで提供してくださってありがとうございます。今回はソースからビルドしません。

apt-get -y update
apt-get -y install softether-vpnserver

サーバーの起動

systemctl status softether-vpnserver.service

● softether-vpnserver.service - SoftEther VPN Server
     Loaded: loaded (/lib/systemd/system/softether-vpnserver.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-05-26 02:34:50 UTC; 9min ago
    Process: 49965 ExecStart=/usr/libexec/softether/vpnserver/vpnserver start (code=exited, status=0/SUCCESS)
   Main PID: 49967 (vpnserver)
      Tasks: 37 (limit: 16777216)
     Memory: 12.2M
        CPU: 3.510s
     CGroup: /system.slice/softether-vpnserver.service
             tq49967 /usr/libexec/softether/vpnserver/vpnserver execsvc
             mq49968 /usr/libexec/softether/vpnserver/vpnserver execsvc

May 26 02:34:50 ubuntu-18 systemd[1]: Starting SoftEther VPN Server...
May 26 02:34:50 ubuntu-18 vpnserver[49965]: The SoftEther VPN Server service has been started.
May 26 02:34:50 ubuntu-18 systemd[1]: Started SoftEther VPN Server.

サーバーの開始と永続化

systemctl start softether-vpnserver.service
systemctl enable softether-vpnserver.service
systemctl restart softether-vpnserver.service

hostnameを設定・永続化

cat /etc/hostname

taiarivpn

VPNserver Managerの起動

新しい接続設定

  • ホスト名:172.24.20.18
  • 管理パスワード: お好きなもの

接続

リモートアクセスを選択
image.png

仮想HUBの設定

image.png

image.png
secureNATをオンにする。

cmd

ドメインでpingが通るか試しておく。

クライアントから接続

windowsからのみ接続できる。

  1. ネットワークの共有センター
  2. 新しい接続
  3. 職場に接続
  4. VPNを使用
  5. vpnazure.netのドメインを入力
    vpn接続を行う

image.png

image.png
待っていると接続されます

参考文献
https://www.proofpoint.com/jp/threat-reference/sstp
https://imamura-net.com/blogpost/19497/

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?