초보자도 가능! Armadillo에서 SoftEtherVPN (Client 편)
개요
전제 조건
Armadillo의 커널 확인
apt-get -y install ssh
가 되어 있는지 체크한다.다음 명령으로
CONFIG_TUN=y
가 반환되는지 확인하십시오.zcat /proc/config.gz | grep "CONFIG_TUN="
준비
mount -t vfat /dev/sda1 /mnt
mkdir /home/atmark/vpn
cp /mnt/softether*** /home/atmark/vpn
cd /home/atmark/vpn
SoftEther install
Linux에 설치 및 초기 설정 를 참고로 하고 있습니다. (그러나이 URL은 서버 설치를 위해 클라이언트로 적절하게 읽습니다.)
tar xzvf softether***
cd vpnclient/
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 License_ReadMe.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
cd vpnclient/
./vpnclient start
./vpncmd
root@armadillo:/home/atmark/vpn/vpnclient
root@armadillo:./vpncmd
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 4.19 Build 9599 (English)
Compiled 2015/10/19 20:28:20 by yagi at pc30
Copyright (c) SoftEther VPN Project. All Rights Reserved.
By using vpncmd program, the following can be achieved.
1. Management of VPN Server or VPN Bridge
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)
Select 1, 2 or 3: 2 #2番を選択します
Specify the host name or IP address of the computer that the destination VPN Cli ent is operating on.
If nothing is input and Enter is pressed, connection will be made to localhost ( this computer).
Hostname of IP Address of Destination: # 何も入力せずにEnter
Connected to VPN Client "localhost".
VPN Client>NicCreate #仮想NICを作成します。
NicCreate command - Create New Virtual Network Adapter
Virtual Network Adapter Name: azure_vpn # 今回はAzureにSoftEtherServerを立てた想定でこのような名前にしています。
The command completed successfully.
VPN Client>AccountCreate # Accountを作成します。
AccountCreate command - Create New VPN Connection Setting
Name of VPN Connection Setting: [Account名] # Account名を任意の文字列で作成
Destination VPN Server Host Name and Port Number:
[VPNServer名:port] # VPNのサーバー名とポートを指定します。
Destination Virtual Hub Name: AzureVPN # 仮想HUBの名称を指定します。
Connecting User Name: [User名] # サーバー側で設定したUser名を入力します
Used Virtual Network Adapter Name: azure_vpn #前段で作成したNICの名称を入れます。
The command completed successfully..
VPN Client>AccountPasswordSet #Accountのパスワードを設定します。
AccountPasswordSet command - Set User Authentication Type of VPN Connection Sett ing to Password Authentication
Name of VPN Connection Setting: [Account名] # 前段で設定したAccount名を入力します
Please enter the password. To cancel press the Ctrl+D key.
Password: [password] # 任意のパスワードを設定します。
Confirm input: [password]
Specify standard or radius: standard # standardを設定します。
The command completed successfully.
VPN Client>AccountConnect # 次にどのAccountを接続するかを設定します。
AccountConnect command - Start Connection to VPN Server using VPN Connection Set ting
Name of VPN Connection Setting: [Account名] # Account名を入力します
The command completed successfully.
VPN Client>accountlist
AccountList command - Get List of VPN Connection Settings
Item |Value
----------------------------+-------------------------------------------------------------------
VPN Connection Setting Name |[Account名]
Status |Connected
VPN Server Hostname |[VPNServer名:port] (Direct TCP/IP Connection)
Virtual Hub |AzureVPN
Virtual Network Adapter Name|azure_vpn
The command completed successfully.
VPN Client>accountstartupset # スタート時にどのAccountを接続するか設定します。
AccountStartupSet command - Set VPN Connection Setting as Startup Connection
Name of VPN Connection Setting: [Account名]
CONFIG_TUN=y
에서 실행 권한도 전달하십시오 #!/bin/sh
#
# chkconfig: 2345 99 01
# description: SoftEther VPN Client
DAEMON=/home/atmark/vpn/vpnclient/vpnclient
LOCK=/var/lock/subsys/vpnclient
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
sleep 5
ip address add 192.168.1.1/24 brd 192.168.1.255 dev vpn_azure_vpn
exit 0
#!/bin/sh
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
HUB_RESET="/sys/devices/soc/30800000.aips-bus/30a50000.i2c/i2c-3/3-0008/USB3503_
RESET/value"
reset_hub()
{
echo 0 > $HUB_RESET
sleep 0.1
echo 1 > $HUB_RESET
}
HUB_ID="0424:3503"
lsusb -d $HUB_ID > /dev/null 2>&1
if [ $? -ne 0 ]; then
reset_hub
fi
/etc/init.d/vpnclient start
sleep 5
ip address add 192.168.1.1/24 brd 192.168.1.255 dev vpn_azure_vpn
exit 0
이상으로 설정은 끝입니다.
이제 Armadillo가 시작될 때 SoftEther가 자동으로 시작됩니다.
요약
Reference
이 문제에 관하여(초보자도 가능! Armadillo에서 SoftEtherVPN (Client 편)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/snuow/items/da6ae5770e98731b4247텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)