aboutsummaryrefslogtreecommitdiff
path: root/server_install.sh.sample
blob: 80cedbcfd9d5f07c888b8f265f1d9c8d488f70e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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