hckao@x96:~$ sudo sh vpn.sh [sudo] password for hckao: + wget -t 3 -T 30 -q -O /tmp/vpn.lcKzg/vpn.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_ubuntu.sh ## VPN setup in progress... Please be patient. ## Installing packages required for setup... + apt-get -yqq update + apt-get -yqq install wget dnsutils openssl iptables iproute2 gawk grep sed net-tools ## Trying to auto discover IP of this server... ## Installing packages required for the VPN... + apt-get -yqq install libnss3-dev libnspr4-dev pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev libcurl4-nss-dev flex bison gcc make libnss3-tools libevent-dev libsystemd-dev uuid-runtime ppp xl2tpd ## Installing Fail2Ban to protect SSH... + apt-get -yqq install fail2ban ## Downloading helper scripts... + ikev2.sh addvpnuser.sh delvpnuser.sh ## Downloading Libreswan... + wget -t 3 -T 30 -q -O libreswan-4.7.tar.gz https://github.com/libreswan/libreswan/archive/v4.7.tar.gz ## Compiling and installing Libreswan, please wait... + make -j5 -s base + make -s install-base ## Creating VPN configuration... ## Updating sysctl settings... ## Updating IPTables rules... ## Enabling services on boot... ## Starting services... ================================================ IPsec VPN server is now ready for use! Connect to your new VPN with these details: Server IP: 1.160.14.82 IPsec PSK: kbtvpn57 Username: hckao Password: kbt236 Write these down. You'll need them to connect! VPN client setup: https://vpnsetup.net/clients ================================================ ================================================ IKEv2 setup successful. Details for IKEv2 mode: VPN server address: 1.160.14.82 VPN client name: vpnclient Client configuration is available at: /home/hckao/vpnclient.p12 (for Windows & Linux) /home/hckao/vpnclient.sswan (for Android) /home/hckao/vpnclient.mobileconfig (for iOS & macOS) Next steps: Configure IKEv2 clients. See: https://vpnsetup.net/clients ================================================ ************************************************ ================================================ hckao@x96:~$ ls -l 總計 44 -rw-rw-r-- 1 hckao hckao 562 6月 16 12:12 instr.txt -rw------- 1 hckao hckao 12162 6月 16 13:44 vpnclient.mobileconfig -rw------- 1 hckao hckao 4425 6月 16 13:44 vpnclient.p12 -rw------- 1 hckao hckao 6417 6月 16 13:44 vpnclient.sswan -rw-rw-r-- 1 hckao hckao 9395 6月 16 12:48 vpn.sh ================================================ ************************************************