123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #!/bin/bash
- #Open HTTP Puncher By Geo Gabut
- #Direct Proxy Squid For OpenVPN TCP
- RED='\e[1;31m'
- GREEN='\e[0;32m'
- BLUE='\e[0;34m'
- NC='\e[0m'
- MYIP=$(wget -qO- https://icanhazip.com);
- MYIP2="s/xxxxxxxxx/$MYIP/g";
- #Update Repository VPS
- clear
- apt update
- apt-get -y upgrade
- #Port Server
- Port_OpenVPN_TCP='1194';
- Port_Squid='3128';
- Port_OHP='8383';
- #Installing ohp Server
- cd
- wget -O /usr/local/bin/ohp "https://notabug.org/irwanmohi/oph/src/main/ohp"
- wget -O /usr/local/bin/ohp "https://notabug.org/irwanmohi/oph/src/main/ohp.sh"
- wget -O /usr/local/bin/ohp-db "https://notabug.org/irwanmohi/oph/raw/main/ohp-db.sh"
- chmod +x /usr/local/bin/ohp
- chmod +x /usr/local/bin/ohp.sh
- chmod +x /usr/local/bin/ohp-db
- #Buat File OpenVPN TCP OHP
- cat > /etc/openvpn/tcp-ohp.ovpn <<END
- setenv CLIENT_CERT 0
- setenv opt block-outside-dns
- client
- dev tun
- proto tcp
- remote "bug" 1194
- persist-tun
- persist-key
- persist-remote-ip
- comp-lzo
- reneg-sec 0
- pull
- resolv-retry infinite
- remote-cert-tls server
- verb 3
- auth-user-pass
- cipher none
- auth none
- auth-nocache
- script-security 2
- tls-version-min 1.2
- tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
- http-proxy xxxxxxxxx 8383
- http-proxy-option VERSION 1.1
- http-proxy-option CUSTOM-HEADER ""
- http-proxy-option CUSTOM-HEADER "Host: "
- http-proxy-option CUSTOM-HEADER "X-Forwarded-Host: "
- http-proxy-option CUSTOM-HEADER ""
- END
- sed -i $MYIP2 /etc/openvpn/tcp-ohp.ovpn;
- # masukkan certificatenya ke dalam config client TCP 1194
- echo '<ca>' >> /etc/openvpn/tcp-ohp.ovpn
- cat /etc/openvpn/server/ca.crt >> /etc/openvpn/tcp-ohp.ovpn
- echo '</ca>' >> /etc/openvpn/tcp-ohp.ovpn
- cp /etc/openvpn/tcp-ohp.ovpn /home/vps/public_html/tcp-ohp.ovpn
- clear
- cd
- #Buat Service Untuk OHP
- cat > /etc/systemd/system/ohp.service <<END
- [Unit]
- Description=Direct Squid Proxy For OpenVPN TCP
- Documentation=https://t.me/sampiiiiu
- Wants=network.target
- After=network.target
- [Service]
- ExecStart=/usr/local/bin/ohp -port 8383 -proxy 127.0.0.1:3128 -tunnel 127.0.0.1:1194
- Restart=always
- RestartSec=3
- [Install]
- WantedBy=multi-user.target
- END
- systemctl daemon-reload
- systemctl enable ohp
- systemctl restart ohp
- echo ""
- echo -e "${GREEN}Done Installing OHP Server${NC}"
- echo -e "Port OVPN OHP TCP: $ohpp"
- echo -e "Link Download OVPN OHP: http://$MYIP:81/tcp-ohp.ovpn"
- echo -e "Script By Geo Gabut
- © 2021 GitHub, Inc.
- Terms
- Privacy
- Security
- Status
- Docs
- Contact GitHub
- Pricing
- API
- Training
- Blog
- About
- Loading complete
|