aboutsummaryrefslogtreecommitdiff
path: root/server_install.sh.sample
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.net>2017-07-06 23:20:04 +0200
committerNeodarZ <neodarz@neodarz.net>2017-07-06 23:20:04 +0200
commitcded819c74e40c2f43c155e19a1f84340c2987a2 (patch)
tree1ffdbd22518ba5ba5b6c03201859473ed9b3d297 /server_install.sh.sample
downloadEphermalVPN-cded819c74e40c2f43c155e19a1f84340c2987a2.tar.xz
EphermalVPN-cded819c74e40c2f43c155e19a1f84340c2987a2.zip
Initial commitHEADmaster
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