====== VPNサーバ(PacketiX VPN -> SoftEther VPN)移行方法====== SoftEther VPNは、現在筑波大学より配布されている UT-VPN の後継プロジェクトである\\ 「SoftEthr Project」から公開されるフリーウェアです。 PacketiX VPN から SoftEther VPN への移行方法をメモしてます。 ===== SoftEther VPN インストール・移行 ===== ==== ①ダウンロード・コンパイル ==== 最新版は[[http://www.softether.org/]]からダウンロード # cd /usr/local/src # wget http://www.softether-download.com/files/softether/v1.00-9026-rc2-2013.03.10-tree/Linux/SoftEther%20VPN%20Server/32bit%20-%20Intel%20x86/softether-vpnserver-v1.00-9026-rc2-2013.03.10-linux-x86-32bit.tar.gz # tar zxvf softether-vpnserver-v1.00-9026-rc2-2013.03.10-linux-x86-32bit.tar.gz # cd vpnserver # make Do you want to read the License Agreement for this software ? 1. Yes 2. No Please choose one of above number: 1 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 Did you agree the License Agreement ? 1. Agree 2. Do Not Agree Please choose one of above number: 1 ==== ②PacketiX停止 ==== # /etc/init.d/vpnserver stop ==== ③バックアップ ==== 元のPacketiXフォルダを移動 # mv /usr/local/vpnserver /usr/local/vpnserver.PacketiX_bak ==== ④フォルダ移動 ==== 元PacketiXフォルダがあった場所にコンパイルしたSoftEther VPNのフォルダを移動する。 # mv /usr/local/src/vpnserver /usr/local/vpnserver ==== ⑤設定ファイルのコピー ==== 元のPacktiXのフォルダから、設定ファイルをコピー # cp /usr/local/vpnserver.PacketiX_bak/vpn_server.config /usr/local/vpnserver/ ==== ⑥SoftEther VPN起動 ==== # /etc/init.d/vpnserver start 後は [[01_linux:01_net:vpnサーバ_packetix#PacketiX VPNサーバ管理|PacketiX VPNサーバ管理]] / [[01_linux:01_net:vpnサーバ_packetix#PacketiX VPNクライアント|PacketiX VPNクライアント]] 両方で正常に接続できるか確認を行う。 ===== ロールバック ===== ==== ①SoftEther VPN停止 ==== # /etc/init.d/vpnserver stop ==== ②フォルダ入れ替え ==== # mv /usr/local/vpnserver /usr/local/vpnserver.SoftEther_bak # mv /usr/local/vpnserver.PacketiX_bak /usr/local/vpnserver ==== ③PacketiX 起動 ==== # /etc/init.d/vpnserver start {{tag>vpn}}