From b59eb58ac99404470f81dec3d0fb8b94c8199dfb Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Wed, 21 Jul 2021 01:56:11 -0500 Subject: [PATCH] Update docs --- README-zh.md | 9 +++++++++ README.md | 9 +++++++++ docs/images/script-demo.svg | 1 + 3 files changed, 19 insertions(+) create mode 100644 docs/images/script-demo.svg diff --git a/README-zh.md b/README-zh.md index 85fa993..f4d0ceb 100644 --- a/README-zh.md +++ b/README-zh.md @@ -66,6 +66,15 @@ wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh - 你的 VPN 登录凭证将会被自动随机生成,并在安装完成后显示在屏幕上。 +
+ +单击此处查看 VPN 安装脚本的示例输出(终端记录)。 + + +**注:** 此终端记录仅用于演示目的。该记录中的 VPN 凭据**无效**。 +

+
+ 如需了解其它安装选项,以及如何配置 VPN 客户端,请继续阅读以下部分。 \* 一个专用服务器或者虚拟专用服务器 (VPS)。OpenVZ VPS 不受支持。 diff --git a/README.md b/README.md index 7a90f64..3f1db4e 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,15 @@ wget https://git.io/vpnsetup-amzn -O vpn.sh && sudo sh vpn.sh && sudo ikev2.sh - Your VPN login details will be randomly generated, and displayed on the screen when finished. +
+ +Click here to see the VPN setup scripts in action (terminal recording). + + +**Note:** This terminal recording is for demonstration purposes only. VPN credentials in this recording are NOT valid. +

+
+ For other installation options and how to set up VPN clients, read the sections below. \* A dedicated server or virtual private server (VPS). OpenVZ VPS is not supported. diff --git a/docs/images/script-demo.svg b/docs/images/script-demo.svg new file mode 100644 index 0000000..cedc887 --- /dev/null +++ b/docs/images/script-demo.svg @@ -0,0 +1 @@ +##CreatingVPNconfiguration...##VPNcredentialsnotsetbyuser.GeneratingrandomPSKandpassword...##Installingpackagesrequiredforsetup...++apt-get+apt-get-yqq+apt-get-yqqupdate+apt-get-yqqinstall+apt-get-yqqinstallwgetdnsutilsopenssliptablesiproute2gawkgrepsednet-tools##TryingtoautodiscoverIPofthisserver...##InstallingpackagesrequiredfortheVPN...+apt-get-yqqinstalllibnss3-devlibnspr4-devpkg-configlibpam0g-devlibcap-ng-devlibcap-ng-utilslibselinux1-devlibcurl4-nss-devflexbisongccmakelibnss3-toolslibevent-devlibsystemd-devuuid-runtimepppxl2tpd##InstallingFail2BantoprotectSSH...+apt-get-yqqinstallfail2ban##DownloadingIKEv2script...+wget+wget-t+wget-t3+wget-t3-T+wget-t3-T30+wget-t3-T30-q+wget-t3-T30-q-O+wget-t3-T30-q-Oikev2.shhttps://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh##DownloadingLibreswan...+wget-t3-T30-q-Olibreswan-4.4.tar.gzhttps://github.com/libreswan/libreswan/archive/v4.4.tar.gz##CompilingandinstallingLibreswan,pleasewait...+make+make-j2-sbase+make-sinstall-base##VPNsetupinprogress...Pleasebepatient.##Updatingsysctlsettings...##UpdatingIPTablesrules...##Enablingservicesonboot...##Startingservices...================================================IPsecVPNserverisnowreadyforuse!ConnecttoyournewVPNwiththesedetails:ServerIP:192.0.2.1IPsecPSK:rgRu5StsghHtuDrCz44HUsername:vpnuserPassword:EnNdyBsXEWKXiEdaWritethesedown.You'llneedthemtoconnect!Importantnotes:https://git.io/vpnnotesSetupVPNclients:https://git.io/vpnclientsIKEv2guide:https://git.io/ikev2##StartingIKEv2setupinautomode,usingdefaultoptions.IKEv2setupsuccessful.DetailsforIKEv2mode:VPNserveraddress:192.0.2.1VPNclientname:vpnclientClientconfigurationisavailableat:/root/vpnclient.p12(forWindows&Linux)/root/vpnclient.sswan(forAndroid)/root/vpnclient.mobileconfig(foriOS&macOS)*IMPORTANT*Passwordforclientconfigfiles:yncPWiTxqa4L9HMxesWritethisdown,you'llneeditforimport!Nextsteps:ConfigureIKEv2VPNclients.See:https://git.io/ikev2clients+apt-get-yqqinstallwget+apt-get-yqqinstallwgetdnsutils+apt-get-yqqinstallwgetdnsutilsopenssl+apt-get-yqqinstallwgetdnsutilsopenssliptables+apt-get-yqqinstallwgetdnsutilsopenssliptablesiproute2+apt-get-yqqinstallwgetdnsutilsopenssliptablesiproute2gawk+apt-get-yqqinstallwgetdnsutilsopenssliptablesiproute2gawkgrep+apt-get-yqqinstallwgetdnsutilsopenssliptablesiproute2gawkgrepsed+apt-get-yqqinstalllibnss3-dev+apt-get-yqqinstalllibnss3-devlibnspr4-dev+apt-get-yqqinstalllibnss3-devlibnspr4-devpkg-config+apt-get-yqqinstalllibnss3-devlibnspr4-devpkg-configlibpam0g-dev+apt-get-yqqinstalllibnss3-devlibnspr4-devpkg-configlibpam0g-devlibcap-ng-dev+apt-get-yqqinstalllibnss3-devlibnspr4-devpkg-configlibpam0g-devlibcap-ng-devlibcap-ng-utilsinux1-devinux1-devlibcurl4-nss-devinux1-devlibcurl4-nss-devflexinux1-devlibcurl4-nss-devflexbisoninux1-devlibcurl4-nss-devflexbisongccinux1-devlibcurl4-nss-devflexbisongccmakeinux1-devlibcurl4-nss-devflexbisongccmakelibnss3-tools+wget-t3-T30-q-Oikev2.sh+wget-t3-T30-q-Olibreswan-4.4.tar.gz+make-j2+make-j2-s+make-s##CheckingforMOBIKEsupport...notavailable##GeneratingCAandservercertificates...##Generatingclientcertificate...##Creatingclientconfiguration...##AddinganewIKEv2connection...##RestartingIPsecservice... \ No newline at end of file