123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #!/bin/bash
- #shadowsocks-libev obfs install by BotVPN
- source /etc/os-release
- OS=$ID
- ver=$VERSION_ID
- #Install_Packages
- echo "#############################################"
- echo "Install Paket..."
- apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake -y
- echo "Install Paket Selesai."
- echo "#############################################"
- #Install_Shadowsocks_libev
- echo "#############################################"
- echo "Install Shadowsocks-libev..."
- apt-get install software-properties-common -y
- if [[ $OS == 'ubuntu' ]]; then
- apt install shadowsocks-libev -y
- apt install simple-obfs -y
- elif [[ $OS == 'debian' ]]; then
- if [[ "$ver" = "9" ]]; then
- echo "deb http://deb.debian.org/debian stretch-backports main" | tee /etc/apt/sources.list.d/stretch-backports.list
- apt update
- apt -t stretch-backports install shadowsocks-libev -y
- apt -t stretch-backports install simple-obfs -y
- elif [[ "$ver" = "10" ]]; then
- echo "deb http://deb.debian.org/debian buster-backports main" | tee /etc/apt/sources.list.d/buster-backports.list
- apt update
- apt -t buster-backports install shadowsocks-libev -y
- apt -t buster-backports install simple-obfs -y
- fi
- fi
- echo "Install Shadowsocks-libev Selesai."
- echo "#############################################"
- #Server konfigurasi
- echo "#############################################"
- echo "Konfigurasi Server."
- cat > /etc/shadowsocks-libev/config.json <<END
- {
- "server":"0.0.0.0",
- "server_port":8488,
- "password":"tes",
- "timeout":60,
- "method":"aes-256-cfb",
- "fast_open":true,
- "nameserver":"8.8.8.8",
- "mode":"tcp_and_udp",
- }
- END
- echo "#############################################"
- #mulai ~shadowsocks-libev~ server
- echo "#############################################"
- echo "mulai ss server"
- systemctl enable shadowsocks-libev.service
- systemctl start shadowsocks-libev.service
- echo "#############################################"
- #buat client config
- echo "#############################################"
- echo "buat config obfs"
- cat > /etc/shadowsocks-libev.json <<END
- {
- "server":"127.0.0.1",
- "server_port":8388,
- "local_port":1080,
- "password":"",
- "timeout":60,
- "method":"chacha20-ietf-poly1305",
- "mode":"tcp_and_udp",
- "fast_open":true,
- "plugin":"/usr/bin/obfs-local",
- "plugin_opts":"obfs=tls;failover=127.0.0.1:1443;fast-open"
- }
- END
- chmod +x /etc/shadowsocks-libev.json
- echo "#############################################"
- echo -e "">>"/etc/shadowsocks-libev/akun.conf"
- echo "#############################################"
- echo "Menambahkan Perintah Shadowsocks-libev"
- iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 2443:3543 -j ACCEPT
- iptables -I INPUT -m state --state NEW -m udp -p udp --dport 2443:3543 -j ACCEPT
- iptables-save > /etc/iptables.up.rules
- ip6tables-save > /etc/ip6tables.up.rules
- cd /usr/bin
- wget -O add-ss "https://raw.githubusercontent.com/alifnurmareta/bc/main/add-ss.sh"
- wget -O del-ss "https://raw.githubusercontent.com/alifnurmareta/bc/main/del-ss.sh"
- wget -O cek-ss "https://raw.githubusercontent.com/alifnurmareta/bc/main/cek-ss.sh"
- wget -O renew-ss "https://raw.githubusercontent.com/alifnurmareta/bc/main/renew-ss.sh"
- chmod +x add-ss
- chmod +x del-ss
- chmod +x cek-ss
- chmod +x renew-ss
- cd
- rm -f /root/sodosok.sh
|