aboutsummaryrefslogtreecommitdiff
path: root/server_install.sh.sample
diff options
context:
space:
mode:
Diffstat (limited to 'server_install.sh.sample')
-rwxr-xr-xserver_install.sh.sample23
1 files changed, 23 insertions, 0 deletions
diff --git a/server_install.sh.sample b/server_install.sh.sample
new file mode 100755
index 0000000..80cedbc
--- /dev/null
+++ b/server_install.sh.sample
@@ -0,0 +1,23 @@
+#!/bin/bash
+VPN_SERVER_IP="$(curl -s https://api.ipify.org)"
+VPN_IPSEC_PSK="vpn_psk_key"
+VPN_USER="vpn_user"
+VPN_PASSWORD="vpn_pass"
+wget https://git.io/vpnsetup -O vpnsetup.sh && sudo \
+VPN_IPSEC_PSK="$VPN_IPSEC_PSK" \
+VPN_USER="$VPN_USER" \
+VPN_PASSWORD="$VPN_PASSWORD" sh vpnsetup.sh
+
+#wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh
+
+#systemctl enable ipsec.service
+#systemctl restart ipsec.service
+#systemctl restart xl2tpd.service
+#vim /etc/ppp/chap-secrets
+#systemctl restart ipsec.service
+
+
+#vim /etc/ssh/sshd_config
+#systemctl restart ssh.service
+#apt install ufw
+#reboot