-
Notifications
You must be signed in to change notification settings - Fork 1
/
tunnel6.sh
48 lines (35 loc) · 1.76 KB
/
tunnel6.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
#script auto installer SSH + VPN LT2P/IPSec PSK
#created bye HideSSH.com and Kumpulanremaja.com
#OS Debian 9
#update dan upgrade
echo "================= Update dan upgrade VPS ======================"
apt-get update && apt-get upgrade -y
#package tambahan
echo "================ install Package Tambahan Penting Lain nya ======================"
apt-get -y install wget curl gcc
#auto installer L2TP/Ipsec PSk
echo "================= Auto installer L2TP/Ipsec ======================"
wget https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/vpnsetup.sh && chmod +x vpnsetup.sh && sh vpnsetup.sh
#add remove account VPN lt2p
wget -O /usr/local/bin/stdev-l2tp-add-user "https://raw.githubusercontent.com/4hidessh/sshtunnel/master/stdev-l2tp-add-user"
wget -O /usr/local/bin/stdev-l2tp-remove-user "https://raw.githubusercontent.com/4hidessh/sshtunnel/master/stdev-l2tp-remove-user"
# shared key
wget -O /usr/local/bin/stdev-l2tp-get-psk "https://raw.githubusercontent.com/4hidessh/sshtunnel/master/stdev-l2tp-get-psk"
#edit password shared l2tp
wget -O /etc/ipsec.secrets "https://raw.githubusercontent.com/4hidessh/sshtunnel/master/ipsec.secrets"
#permition
chmod +x /usr/local/bin/stdev-l2tp-add-user
chmod +x /usr/local/bin/stdev-l2tp-remove-user
chmod +x /usr/local/bin/stdev-l2tp-get-psk
#auto installer SSH + Dropbear +Stunnel + SSLH Multi Port
wget https://raw.githubusercontent.com/4hidessh/hidessh/main/ssh/lt2p.sh && chmod +x lt2p.sh && ./lt2p.sh
#firewall
apt-get -y install iptables-persistent
wget https://raw.githubusercontent.com/4hidessh/sshtunnel/master/firewall-torent && chmod +x firewall-torent && ./firewall-torent
netfilter-persistent save
netfilter-persistent reload
#hapus file installer
rm -rf tunnel6.sh
rm -rf lt2p.sh
rm -rf vpnsetup.sh