Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt remove apache2 -y
- sudo apt-get update -y && sudo apt-get upgrade
- apt install -y sudo curl nano
- #!/bin/bash
- #Auto Script By : Jhoe Xii
- bash <(curl -s -L https://git.io/v2ray.sh)
- sudo apt install software-properties-common
- sudo add-apt-repository ppa:certbot/certbot
- sudo apt-get install certbot -y
- dns='s2.gtmnoload.ml';
- sudo rm -rf /etc/letsencrypt/{live,renewal,archive}/{$dns,$dns.conf}
- sudo certbot certonly --standalone --preferred-challenges http --agree-tos --email codeph99@gmail.com -d $dns
- cat << EOF > /etc/v2ray/config.json
- {
- "log": {
- "access": "/var/log/v2ray/access.log",
- "error": "/var/log/v2ray/error.log",
- "loglevel": "warning"
- },
- "inbounds": [
- {
- "port": 443,
- "protocol": "vmess",
- "settings": {
- "clients": [
- {"id": "1630d1f3-3a91-44ac-8d32-8f4e0050b722", "level": 1, "alterId": 44}
- {
- ]
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "tlsSettings": {
- "certificates": [
- {
- "certificateFile": "/etc/letsencrypt/live/$dns/cert.pem",
- "keyFile": "/etc/letsencrypt/live/$dns/privkey.pem"
- }
- ],
- "serverName": "$dns"
- },
- "wsSettings": {
- "headers": {},
- "path": "/"
- }
- },
- "sniffing": {
- "enabled": true,
- "destOverride": [
- "http",
- "tls"
- ]
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom",
- "settings": {
- "domainStrategy": "UseIP"
- },
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "settings": {},
- "tag": "blocked"
- },
- {
- "protocol": "mtproto",
- "settings": {},
- "tag": "tg-out"
- }
- ],
- "dns": {
- "servers": [
- "https+local://cloudflare-dns.com/dns-query",
- "1.1.1.1",
- "1.0.0.1",
- "8.8.8.8",
- "8.8.4.4",
- "localhost"
- ]
- },
- "routing": {
- "domainStrategy": "IPOnDemand",
- "rules": [
- {
- "type": "field",
- "ip": [
- "0.0.0.0/8",
- "10.0.0.0/8",
- "100.64.0.0/10",
- "127.0.0.0/8",
- "169.254.0.0/16",
- "172.16.0.0/12",
- "192.0.0.0/24",
- "192.0.2.0/24",
- "192.168.0.0/16",
- "198.18.0.0/15",
- "198.51.100.0/24",
- "203.0.113.0/24",
- "::1/128",
- "fc00::/7",
- "fe80::/10"
- ],
- "outboundTag": "blocked"
- },
- {
- "type": "field",
- "inboundTag": ["tg-in"],
- "outboundTag": "tg-out"
- },
- {
- "type": "field",
- "domain": [
- "domain:epochtimes.com",
- "domain:epochtimes.com.tw",
- "domain:epochtimes.fr",
- "domain:epochtimes.de",
- "domain:epochtimes.jp",
- "domain:epochtimes.ru",
- "domain:epochtimes.co.il",
- "domain:epochtimes.co.kr",
- "domain:epochtimes-romania.com",
- "domain:erabaru.net",
- "domain:lagranepoca.com",
- "domain:theepochtimes.com",
- "domain:ntdtv.com",
- "domain:ntd.tv",
- "domain:ntdtv-dc.com",
- "domain:ntdtv.com.tw",
- "domain:minghui.org",
- "domain:renminbao.com",
- "domain:dafahao.com",
- "domain:dongtaiwang.com",
- "domain:falundafa.org",
- "domain:wujieliulan.com",
- "domain:ninecommentaries.com",
- "domain:shenyun.com"
- ],
- "outboundTag": "blocked"
- } ,
- {
- "type": "field",
- "protocol": [
- "bittorrent"
- ],
- "outboundTag": "blocked"
- }
- ]
- },
- "transport": {
- "kcpSettings": {
- "uplinkCapacity": 100,
- "downlinkCapacity": 100,
- "congestion": true
- }
- }
- }
- EOF
- apt install -y apache2
- service apache restart
- service cron restart
- v2ray restart
Add Comment
Please, Sign In to add comment