12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #!/bin/bash
- #shadowsocks-libev obfs install by OkkayKayyo
- source /etc/os-release
- OS=$ID
- ver=$VERSION_ID
- #Install_Packages
- 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 "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 -e "">>"/etc/shadowsocks-libev/akun.conf"
- 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/EvoTeamMalaysia/AutoScript/main/add-ss.sh"
- wget -O del-ss "https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/del-ss.sh"
- wget -O cek-ss "https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/cek-ss.sh"
- wget -O renew-ss "https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/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
|