PowerMac G4(Graphite) に SoftEther を設定する

Interlink の マイIP を設定するために SoftEther を入れる。
※他にもいろいろ便利に利用しています。

1.SoftEther のサイトからダウンロードする
 クライアントのダウンロード、解凍を実施する。
 $ wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-vpnclient-v4.29-9680-rtm-2019.02.28-linux-powerpc-32bit.tar.gz

 $ tar zxvf softether-vpnclient-v4.29-9680-rtm-2019.02.28-linux-powerpc-32bit.tar.gz

 サーバーのダウンロード、解凍を実施する。
 ※クライアントのみの場合は、以降の作業は不要
 $ wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-powerpc-32bit.tar.gz

 $ tar zxvf softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-powerpc-32bit.tar.gz

2.インストール環境を設定する
 # sudo apt-get install build-essential
 ※続行しますか?で Y を選択。

3.クライアントを設定する
 $ cd vpnclient
 $ sudo ./.install.sh
 ※1.Yes を選択する。
  Do you want to read the License Agreement for this software ?
   1. Yes
   2. No
  Please choose one of above number:
 ※1.Yes を選択する。
  Did you read and understand the License Agreement ?
  (If you couldn't read above text, Please read 'ReadMeFirst_License.txt'
   file with any text editor.)
   1. Yes
   2. No
  Please choose one of above number:
 ※1.Agree を選択する。
  Did you agree the License Agreement ?
   1. Agree
   2. Do Not Agree
  Please choose one of above number:

 一度動かして問題ないかを確認する。
 ※初期設定ファイルとかも出来てるかな?
 $ ./vpnclient start
 $ ./vpnclient stop

 移動する。
 $ cd ..
 $ sudo mv vpnclient /usr/local/
 $ sudo chown -R root:root /usr/local/vpnclient

 セキュリティ設定する。
 $ sudo chmod 600 /usr/local/vpnclient/*
 $ sudo chmod 700 /usr/local/vpnclient/vpncmd
 $ sudo chmod 700 /usr/local/vpnclient/vpnclient

 起動する。
 $ sudo /usr/local/vpnclient/vpnclient start

 接続設定をする。
 $ sudo /usr/local/vpnclient/vpncmd /CLIENT
 ※localhost の設定をするため、Enter を押下する。

  仮想LANカードを作成する。
  VPN Client> NicCreate sfeth0
  ※確認
  VPN Client> NicList

  接続設定(アカウント)を追加する。
  VPN Client>  AccountCreate [name] [/SERVER:hostname:port] [/HUB:hubname] [/USERNAME:username] [/NICNAME:nicname]
  ※name は設定の名称。
   hostname:port は接続先。
   hubname は接続先のhub名。
   username は接続に利用するユーザ名。
   nicname は仮想LANカード名。
  ※help AccountCreate を見れば一目瞭然(笑)

  パスワード認証設定に変更する。
  VPN Client> AccountPasswordSet [name] [/PASSWORD:password] [/TYPE:standard|radius]
  ※name は設定の名称。
   password はパスワード。
   standard はパスワード認証、radius は RADIUS認証。

  設定を確認する。
  VPN Client> AccountList

  接続する。
  VPN Client> AccountConnect [name]
  ※name は設定の名称。

  接続を確認する。
  VPN Client> AccountList

  スタートアップ時に接続するように設定。
  VPN Client> AccountStartupSet [name]
  ※name は設定の名称。

  自動再接続の設定。
  VPN Client> AccountRetrySet [name] [/NUM:num_retry] [/INTERVAL:retry_interval]
  ※name は設定の名称。
  ※num_retry は自動再接続回数(999は無限)。
  ※retry_interval は再接続間隔。

  接続を解除する。
  VPN Client> AccountDisconnect [name]

  その他の設定
   DHCPを使えるようにする。
    $ sudo apt install dhcpcd5
    $ sudo dhcpcd vpn_sfeth0
    ※接続後であればDHCPでIPが設定される

   サーバー公開時の固定IP設定(Interlink のマイIP Softether版)
    $ sudo ip addr add [固定IP]/[固定IPのネットマスク] dev [device:softetherが作成するもの]
    $ sudo ip route add [接続先IP]/32 via [gateway local] dev [device:eth0とか]
    $ sudo ip route replace default via [gateway myip]

とりあえず、一旦公開します。

でゎ★ノシ

コメント

このブログの人気の投稿

【解決】YogaBook が再起動を繰り返す

XCP-ngを触ってみて

Hyper-V上にXCP-ng(xen環境)をインストール