ãããVPSã®Ubuntu LTS 14.04ã«Softether-VPNãã¤ã³ã¹ãã¼ã«
ãã¡ãã¡ã«ã¤ã³ã¹ãã¼ã«æ¹æ³ãæ¸ããã¦ããã©ãå°ãããã£ãã®ã§ã¡ã¢ã ã¾ãsoftetherã®ã¦ã§ããµã¤ãããã½ã¼ã¹ããã¦ã³ãã¼ããã
$ uname -a # x86_64ã確èªã64bitç¨ã®ã¤ã³ã¹ãã¼ã©ã¼ããã¦ã³ãã¼ããã $ mkdir vpninstall $ cd vpninstall $ wget http://jp.softether-download.com/files/softether/v4.19-9605-beta-2016.03.06-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz $ tar xvfz softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz
ã³ã³ãã¤ã«ãã¦ã¤ã³ã¹ãã¼ã«ãã
$ cd vpnserver $ make # 1ãä¸åé¸ãã $ cd .. $ sudo mv vpnserver /usr/local # make installã³ãã³ãã¯ç¡ããããªã®ã§ãæç´ã«mvãã $ cd /usr/local/vpnserver $ chmod 600 * $ chmod 700 vpncmd vpnserver $ chown root:root * $ chown root:root **/* $ /usr/local/vpnserver/vpncmd # æ£ããã¤ã³ã¹ãã¼ã«ããã¦ãããã§ãã¯
ãµã¼ãã¼ã®é»æºONæã«vpnserverãèªåèµ·åããããè¨å®
$ sudo vi /etc/init.d/vpnserver $ sudo apt-get install sysv-rc-conf # sys-rc-confã¯chkconfigã®Ubuntuç $ sysv-rc-conf --add vpnserver
/etc/init.d/vpnserver
ã®ä¸èº«
#!/bin/sh # chkconfig: 2345 99 01 # description: SoftEther VPN Server DAEMON=/usr/local/vpnserver/vpnserver LOCK=/var/lock/subsys/vpnserver test -x $DAEMON || exit 0 case "$1" in start) $DAEMON start touch $LOCK ;; stop) $DAEMON stop rm $LOCK ;; restart) $DAEMON stop sleep 3 $DAEMON start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit 0
管ç権éã®ããã¢ã¯ã»ã¹å
IPã¢ãã¬ã¹ãadmini.tmp
ã«æå®ã
ã管ç権éã®ããã¢ã¯ã»ã¹å
ã®IPã¢ãã¬ã¹ãã§ããããã¯ã©ã¤ã¢ã³ãã®IPã¢ãã¬ã¹ãã§ã¯ãªãã
é常ã¯VPNãµã¼ããã¤ã³ã¹ãã¼ã«ãããµã¼ãã¼èªèº«ã®IPã¢ãã¬ã¹ãæ¸ãã
$ sudo vi /usr/local/vpnserver/adminip.tmp # ãã¡ã¤ã«ã«ã¯ä»¥ä¸ã®ããã«æ¸ãã 192.168.1.2 127.0.0.1
vpnãµã¼ããç«ã¡ããã¦ãã¹ã¯ã¼ããè¨å®
$ sudo /usr/local/vpnserver/vpnserver start # ãã®æä½ãå¿ãã¦ããã£ã $ sudo /usr/local/vpnserver/vpncmd # ä½ãå ¥åããã¨ã³ã¿ã¼ãäºåæ¼ããå¾ããã¹ã¯ã¼ãè¨å®
åèãµã¤ã SoftEther VPN Server ã CentOS ã«ã¤ã³ã¹ãã¼ã«ãã 3.5 仮想 HUB のセキュリティ - SoftEther VPN プロジェクト