shadow.sh 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. #!/bin/sh
  2. wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -
  3. sleep 2
  4. echo "deb http://build.openvpn.net/debian/openvpn/release/2.5 buster main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
  5. #Requirement
  6. apt update
  7. apt upgrade -y
  8. apt install openvpn nginx php7.3-fpm stunnel4 squid3 dropbear easy-rsa unzip vnstat ufw build-essential fail2ban zip -y
  9. # initializing var
  10. export DEBIAN_FRONTEND=noninteractive
  11. OS=`uname -m`;
  12. MYIP=$(wget -qO- ipv4.icanhazip.com);
  13. MYIP2="s/sssssssss/$MYIP/g";
  14. cd ~/
  15. wget "https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/plugin.tgz"
  16. # disable ipv6
  17. echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
  18. # set time GMT +8
  19. ln -fs /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime
  20. # install webmin
  21. cd
  22. wget "https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/webmin_1.801_all.deb"
  23. dpkg --install webmin_1.801_all.deb;
  24. apt-get -y -f install;
  25. sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
  26. rm ~/webmin_1.801_all.deb
  27. service webmin restart
  28. # install screenfetch
  29. cd
  30. wget -O /usr/bin/screenfetch "https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/screenfetch"
  31. chmod +x /usr/bin/screenfetch
  32. echo "clear" >> .profile
  33. echo "screenfetch" >> .profile
  34. # install dropbear
  35. sed -i 's/NO_START=1/NO_START=0/g' /etc/default/dropbear
  36. sed -i 's/DROPBEAR_PORT=22/DROPBEAR_PORT=442/g' /etc/default/dropbear
  37. echo "/bin/false" >> /etc/shells
  38. # install squid3
  39. cat > /etc/squid/squid.conf <<-END
  40. acl localhost src 127.0.0.1/32 ::1
  41. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  42. acl SSL_ports port 444
  43. acl Safe_ports port 80
  44. acl Safe_ports port 21
  45. acl Safe_ports port 444
  46. acl Safe_ports port 70
  47. acl Safe_ports port 210
  48. acl Safe_ports port 1025-65535
  49. acl Safe_ports port 280
  50. acl Safe_ports port 488
  51. acl Safe_ports port 591
  52. acl Safe_ports port 777
  53. acl CONNECT method CONNECT
  54. acl SSH dst sssssssss-sssssssss/32
  55. http_access allow SSH
  56. http_access allow manager localhost
  57. http_access deny manager
  58. http_access allow localhost
  59. http_access deny all
  60. http_port 3128
  61. http_port 8080
  62. coredump_dir /var/spool/squid3
  63. error_directory /usr/share/squid/errors/English
  64. refresh_pattern ^ftp: 1440 20% 10080
  65. refresh_pattern ^gopher: 1440 0% 1440
  66. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  67. refresh_pattern . 0 20% 4320
  68. visible_hostname Shadow046
  69. END
  70. sed -i $MYIP2 /etc/squid/squid.conf;
  71. # Change Squid Page
  72. cat > /usr/share/squid-langpack/en/ERR_INVALID_URL <<-END
  73. <!DOCTYPE html>
  74. <html><head>
  75. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  76. <meta name="description" content="%h SQUID PROXY" />
  77. <title>Welcome to %h SQUID PROXY</title>
  78. <script type="text/javascript">
  79. function Redirect()
  80. {
  81. window.location="http://vpn.shadow.tech:88";
  82. }
  83. setTimeout('Redirect()', 60);
  84. </script>
  85. <center>Thanks for visiting!<br><br>Loading please wait...</center><br><br>
  86. <hr>
  87. <div id="footer">
  88. <p>SQUID PROXY Generated by %h on %T Malaysian</p>
  89. <!-- %c -->
  90. </div>
  91. </body></html>
  92. END
  93. # setting banner
  94. rm /etc/issue.net
  95. wget -O /etc/issue.net "https://raw.githubusercontent.com/radzvpn/PanelxServer-Centos6-master/master/issue.net"
  96. sed -i 's@#Banner[[:space:]]@Banner /etc/banner@g' /etc/ssh/sshd_config
  97. sed -i 's@DROPBEAR_BANNER=""@DROPBEAR_BANNER="/etc/issue.net"@g' /etc/default/dropbear
  98. service ssh restart
  99. service dropbear restart
  100. #install OpenVPN
  101. cp -r /usr/share/easy-rsa/ /etc/openvpn
  102. mkdir /etc/openvpn/easy-rsa/keys
  103. # replace bits
  104. sed -i 's|export KEY_COUNTRY="US"|export KEY_COUNTRY="MY"|' /etc/openvpn/easy-rsa/vars
  105. sed -i 's|export KEY_PROVINCE="CA"|export KEY_PROVINCE="Selangor"|' /etc/openvpn/easy-rsa/vars
  106. sed -i 's|export KEY_CITY="SanFrancisco"|export KEY_CITY="Gombak"|' /etc/openvpn/easy-rsa/vars
  107. sed -i 's|export KEY_ORG="Fort-Funston"|export KEY_ORG="Aidan"|' /etc/openvpn/easy-rsa/vars
  108. sed -i 's|export KEY_EMAIL="irwanmohi@gmail.com"|export KEY_FB="vpn.shadow-pipe.tech:99"|' /etc/openvpn/easy-rsa/vars
  109. sed -i 's|export KEY_OU="Aidan"|export KEY_OU="STRICTLY_NO_TORRENT_ALLOWED_IN_THIS_SERVER"|' /etc/openvpn/easy-rsa/vars
  110. sed -i 's|export KEY_NAME="EasyRSA"|export KEY_NAME="Aidan"|' /etc/openvpn/easy-rsa/vars
  111. sed -i 's|export KEY_OU=changeme|export KEY_OU=STRICTLY_NO_TORRENT_ALLOWED_IN_THIS_SERVER|' /etc/openvpn/easy-rsa/vars
  112. #Create Diffie-Helman Pem
  113. openssl dhparam -out /etc/openvpn/dh2048.pem 2048
  114. # Create PKI
  115. cd /etc/openvpn/easy-rsa
  116. cp openssl-1.0.0.cnf openssl.cnf
  117. . ./vars
  118. ./clean-all
  119. export EASY_RSA="${EASY_RSA:-.}"
  120. "$EASY_RSA/pkitool" --initca $*
  121. # create key server
  122. export EASY_RSA="${EASY_RSA:-.}"
  123. "$EASY_RSA/pkitool" --server server
  124. # setting KEY CN
  125. export EASY_RSA="${EASY_RSA:-.}"
  126. "$EASY_RSA/pkitool" client
  127. cd
  128. #cp /etc/openvpn/easy-rsa/keys/{server.crt,server.key} /etc/openvpn
  129. cp /etc/openvpn/easy-rsa/keys/server.crt /etc/openvpn/server.crt
  130. cp /etc/openvpn/easy-rsa/keys/server.key /etc/openvpn/server.key
  131. cp /etc/openvpn/easy-rsa/keys/ca.crt /etc/openvpn/ca.crt
  132. #chmod +x /etc/openvpn/ca.crt #i dont know why making executable
  133. # Setting Server
  134. tar -xzvf /root/plugin.tgz -C /usr/lib/openvpn/
  135. chmod +x /usr/lib/openvpn/*
  136. cat > /etc/openvpn/server.conf <<-END
  137. port 1153
  138. proto tcp
  139. dev tun
  140. ca ca.crt
  141. cert server.crt
  142. key server.key
  143. dh dh2048.pem
  144. verify-client-cert none
  145. username-as-common-name
  146. plugin /usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so login
  147. server 192.168.10.0 255.255.255.0
  148. ifconfig-pool-persist ipp.txt
  149. push "redirect-gateway def1 bypass-dhcp"
  150. push "dhcp-option DNS 1.1.1.1"
  151. push "dhcp-option DNS 1.0.0.1"
  152. push "route-method exe"
  153. push "route-delay 2"
  154. socket-flags TCP_NODELAY
  155. push "socket-flags TCP_NODELAY"
  156. duplicate-cn
  157. keepalive 10 120
  158. comp-lzo
  159. user nobody
  160. group nogroup
  161. persist-key
  162. persist-tun
  163. status openvpn-status.log
  164. log openvpn.log
  165. verb 3
  166. ncp-disable
  167. cipher none
  168. auth none
  169. management $MYIP 7505
  170. END
  171. systemctl start openvpn@server
  172. #Create OpenVPN Config
  173. mkdir -p /home/panel/html
  174. cat > /home/panel/html/client.ovpn <<-END
  175. # RULES [ NO TORRENT | NO DDOS ]
  176. client
  177. dev tun
  178. proto tcp
  179. remote $MYIP 1153
  180. persist-key
  181. persist-tun
  182. pull
  183. resolv-retry infinite
  184. nobind
  185. user nobody
  186. comp-lzo
  187. remote-cert-tls server
  188. verb 3
  189. mute 2
  190. connect-retry 3
  191. connect-retry-max 8080
  192. keepalive 15 45
  193. mute-replay-warnings
  194. redirect-gateway def1
  195. script-security 2
  196. route-method exe
  197. route-delay 2
  198. auth-user-pass
  199. cipher none
  200. auth none
  201. http-proxy-retry
  202. # If squid is not working try to install Privoxy in your vps
  203. http-proxy $MYIP 8080
  204. http-proxy-option CUSTOM-HEADER ""
  205. http-proxy-option CUSTOM-HEADER "POST https://google.com.my HTTP/1.0"
  206. http-proxy-option CUSTOM-HEADER "Connection: Keep-Alive"
  207. http-proxy-option CUSTOM-HEADER "Proxy-Connection: Keep-Alive"
  208. ## Uncomment below if you like to do auto-login in mobile
  209. #<auth-user-pass>
  210. #your_username
  211. #your_password
  212. #</auth-user-pass>
  213. END
  214. echo '<ca>' >> /home/panel/html/client.ovpn
  215. cat /etc/openvpn/ca.crt >> /home/panel/html/client.ovpn
  216. echo '</ca>' >> /home/panel/html/client.ovpn
  217. cat > /home/panel/html/clientssl.ovpn <<-END
  218. # RULES [ NO TORRENT | NO DDOS ]
  219. client
  220. dev tun
  221. proto tcp
  222. remote 127.0.0.1 1153
  223. route $MYIP 255.255.255.255 net_gateway
  224. persist-key
  225. persist-tun
  226. pull
  227. resolv-retry infinite
  228. nobind
  229. user nobody
  230. comp-lzo
  231. remote-cert-tls server
  232. verb 3
  233. mute 2
  234. connect-retry 5
  235. connect-retry-max 8080
  236. mute-replay-warnings
  237. redirect-gateway def1
  238. script-security 2
  239. auth-user-pass
  240. cipher none
  241. auth none
  242. ## Uncomment below if you like to do auto-login in mobile
  243. #<auth-user-pass>
  244. #your_username
  245. #your_password
  246. #</auth-user-pass>
  247. END
  248. echo '<ca>' >> /home/panel/html/clientssl.ovpn
  249. cat /etc/openvpn/ca.crt >> /home/panel/html/clientssl.ovpn
  250. echo '</ca>' >> /home/panel/html/clientssl.ovpn
  251. cat > /home/panel/html/stunnel.conf <<-END
  252. client = yes
  253. debug = 6
  254. [openvpn]
  255. accept = 127.0.0.1:1153
  256. connect = $MYIP:443
  257. TIMEOUTclose = 0
  258. verify = 0
  259. sni = m.facebook.com
  260. END
  261. # Configure Stunnel
  262. sed -i 's/ENABLED=0/ENABLED=1/g' /etc/default/stunnel4
  263. openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -sha256 -subj '/CN=127.0.0.1/O=localhost/C=MY' -keyout /etc/stunnel/stunnel.pem -out /etc/stunnel/stunnel.pem
  264. cat > /etc/stunnel/stunnel.conf <<-END
  265. sslVersion = all
  266. pid = /stunnel.pid
  267. socket = l:TCP_NODELAY=1
  268. socket = r:TCP_NODELAY=1
  269. client = no
  270. [openvpn]
  271. accept = 443
  272. connect = 127.0.0.1:1153
  273. cert = /etc/stunnel/stunnel.pem
  274. [dropbear]
  275. accept = 444
  276. connect = 127.0.0.1:442
  277. cert = /etc/stunnel/stunnel.pem
  278. END
  279. #Setting UFW
  280. ufw allow ssh
  281. ufw allow 1153/tcp
  282. sed -i 's|DEFAULT_INPUT_POLICY="DROP"|DEFAULT_INPUT_POLICY="ACCEPT"|' /etc/default/ufw
  283. sed -i 's|DEFAULT_FORWARD_POLICY="DROP"|DEFAULT_FORWARD_POLICY="ACCEPT"|' /etc/default/ufw
  284. # set ipv4 forward
  285. echo 1 > /proc/sys/net/ipv4/ip_forward
  286. sed -i 's|#net.ipv4.ip_forward=1|net.ipv4.ip_forward=1|' /etc/sysctl.conf
  287. sysctl -w net.ipv4.ip_forward=1
  288. #Setting IPtables
  289. cat > /etc/iptables.up.rules <<-END
  290. *nat
  291. :PREROUTING ACCEPT [0:0]
  292. :OUTPUT ACCEPT [0:0]
  293. :POSTROUTING ACCEPT [0:0]
  294. -A POSTROUTING -j SNAT --to-source xxxxxxxxx
  295. -A POSTROUTING -o eth0 -j MASQUERADE
  296. -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
  297. -A POSTROUTING -j MASQUERADE
  298. COMMIT
  299. *filter
  300. :INPUT ACCEPT [0:0]
  301. :FORWARD ACCEPT [0:0]
  302. :OUTPUT ACCEPT [0:0]
  303. :fail2ban-ssh - [0:0]
  304. -A INPUT -p tcp -m multiport --dports 22 -j fail2ban-ssh
  305. -A INPUT -p ICMP --icmp-type 8 -j ACCEPT
  306. -A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
  307. -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
  308. -A INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
  309. -A INPUT -p tcp --dport 143 -m state --state NEW -j ACCEPT
  310. -A INPUT -p tcp --dport 442 -m state --state NEW -j ACCEPT
  311. -A INPUT -p tcp --dport 443 -m state --state NEW -j ACCEPT
  312. -A INPUT -p tcp --dport 444 -m state --state NEW -j ACCEPT
  313. -A INPUT -p tcp --dport 1153 -m state --state NEW -j ACCEPT
  314. -A INPUT -p udp --dport 1153 -m state --state NEW -j ACCEPT
  315. -A INPUT -p tcp --dport 3128 -m state --state NEW -j ACCEPT
  316. -A INPUT -p udp --dport 3128 -m state --state NEW -j ACCEPT
  317. -A INPUT -p tcp --dport 8000 -m state --state NEW -j ACCEPT
  318. -A INPUT -p udp --dport 8000 -m state --state NEW -j ACCEPT
  319. -A INPUT -p tcp --dport 8080 -m state --state NEW -j ACCEPT
  320. -A INPUT -p udp --dport 8080 -m state --state NEW -j ACCEPT
  321. -A INPUT -p tcp --dport 8888 -m state --state NEW -j ACCEPT
  322. -A INPUT -p udp --dport 8888 -m state --state NEW -j ACCEPT
  323. -A INPUT -p tcp --dport 10000 -m state --state NEW -j ACCEPT
  324. -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
  325. -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,SYN,RST,PSH,ACK,URG -j DROP
  326. -A INPUT -f -j DROP
  327. -A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
  328. -A INPUT -m string --string "peer_id" --algo kmp --to 65535 -j DROP
  329. -A INPUT -m string --string "BitTorrent" --algo kmp --to 65535 -j DROP
  330. -A INPUT -m string --string "BitTorrent protocol" --algo kmp --to 65535 -j DROP
  331. -A INPUT -m string --string "bittorrent-announce" --algo kmp --to 65535 -j DROP
  332. -A INPUT -m string --string "announce.php?passkey=" --algo kmp --to 65535 -j DROP
  333. -A INPUT -m string --string "find_node" --algo kmp --to 65535 -j DROP
  334. -A INPUT -m string --string "info_hash" --algo kmp --to 65535 -j DROP
  335. -A INPUT -m string --string "get_peers" --algo kmp --to 65535 -j DROP
  336. -A INPUT -m string --string "announce" --algo kmp --to 65535 -j DROP
  337. -A INPUT -m string --string "announce_peers" --algo kmp --to 65535 -j DROP
  338. -A INPUT -p udp -m string --string "BitTorrent" --algo bm --to 65535 -j DROP
  339. -A INPUT -p udp -m string --string ".torrent" --algo bm --to 65535 -j DROP
  340. -A INPUT -p udp -m string --string "announce" --algo bm --to 65535 -j DROP
  341. -A INPUT -p udp -m string --string "info_hash" --algo bm --to 65535 -j DROP
  342. -A INPUT -p udp -m string --string "tracker" --algo bm --to 65535 -j DROP
  343. -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  344. -A FORWARD -i ppp0 -o eth0 -j ACCEPT
  345. -A FORWARD -p tcp -m tcp --dport 6881:6889 -j DROP
  346. -A FORWARD -m string --string "get_peers" --algo bm --to 65535 -j DROP
  347. -A FORWARD -p udp -m string --string "BitTorrent" --algo bm --to 65535 -j DROP
  348. -A FORWARD -p udp -m string --string "BitTorrent protocol" --algo bm --to 65535 -j DROP
  349. -A FORWARD -p udp -m string --string "peer_id=" --algo bm --to 65535 -j DROP
  350. -A FORWARD -p udp -m string --string ".torrent" --algo bm --to 65535 -j DROP
  351. -A FORWARD -p udp -m string --string "announce.php?passkey=" --algo bm --to 65535 -j DROP
  352. -A FORWARD -p udp -m string --string "torrent" --algo bm --to 65535 -j DROP
  353. -A FORWARD -p udp -m string --string "announce" --algo bm --to 65535 -j DROP
  354. -A FORWARD -p udp -m string --string "info_hash" --algo bm --to 65535 -j DROP
  355. -A FORWARD -p udp -m string --string "tracker" --algo bm --to 65535 -j DROP
  356. -A OUTPUT -p udp -m string --string "tracker" --algo bm --to 65535 -j DROP
  357. -A OUTPUT -p udp -m string --string "info_hash" --algo bm --to 65535 -j DROP
  358. -A OUTPUT -p udp -m string --string "announce" --algo bm --to 65535 -j DROP
  359. -A OUTPUT -p udp -m string --string ".torrent" --algo bm --to 65535 -j DROP
  360. -A OUTPUT -p udp -m string --string "BitTorrent" --algo bm --to 65535 -j DROP
  361. -A OUTPUT -p tcp -m tcp --dport 1723 -j ACCEPT
  362. -A OUTPUT -p icmp -m icmp --icmp-type 8 -j DROP
  363. -A OUTPUT -p tcp -m tcp --dport 6881:6889 -j DROP
  364. -A fail2ban-ssh -j RETURN
  365. COMMIT
  366. *raw
  367. :PREROUTING ACCEPT [0:0]
  368. :OUTPUT ACCEPT [0:0]
  369. COMMIT
  370. *mangle
  371. :PREROUTING ACCEPT [0:0]
  372. :INPUT ACCEPT [0:0]
  373. :FORWARD ACCEPT [0:0]
  374. :OUTPUT ACCEPT [0:0]
  375. :POSTROUTING ACCEPT [0:0]
  376. COMMIT
  377. END
  378. sed -i $MYIP2 /etc/iptables.up.rules;
  379. iptables-restore < /etc/iptables.up.rules
  380. # Configure Nginx
  381. mkdir -p /home/panel/html
  382. sed -i 's/\/var\/www\/html;/\/home\/panel\/html\/;/g' /etc/nginx/sites-enabled/default
  383. cp /var/www/html/index.nginx-debian.html /home/panel/html/index.html
  384. cat > /home/panel/html/index.html <<-END
  385. <!DOCTYPE html>
  386. <html lang="en">
  387. <head>
  388. <meta charset="utf-8">
  389. <title>Shadow-Pipe</title>
  390. <meta name="description" content="Use Shadow-Pipe for free!" />
  391. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  392. <!--Bootstrap 4-->
  393. <link rel="stylesheet" href="css/bootstrap.min.css">
  394. <link rel="stylesheet" href="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/animate.min.css">
  395. <!--icons-->
  396. <link rel="stylesheet" href="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/ionicons.min.css" />
  397. </head>
  398. <body>
  399. <!--header-->
  400. <nav class="navbar navbar-expand-md navbar-dark fixed-top sticky-navigation">
  401. <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  402. <span class="ion-grid icon-sm"></span>
  403. </button>
  404. <a class="navbar-brand hero-heading" href="#">Shadow-Pipe</a>
  405. <div class="collapse navbar-collapse" id="navbarCollapse">
  406. <ul class="navbar-nav ml-auto">
  407. <li class="nav-item mr-3">
  408. <a class="nav-link page-scroll" href="#main">Home<span class="sr-only">(current)</span></a>
  409. </li>
  410. <li class="nav-item mr-3">
  411. <a class="nav-link page-scroll" href="#features">Features</a>
  412. </li>
  413. <li class="nav-item mr-3">
  414. <a class="nav-link page-scroll" href="#configs">Configs</a>
  415. </li>
  416. <li class="nav-item mr-3">
  417. <a class="nav-link page-scroll" href="#download">VPN App</a>
  418. </li>
  419. <li class="nav-item mr-3">
  420. <a class="nav-link page-scroll" href="#team">Our Team</a>
  421. </li>
  422. <li class="nav-item mr-3">
  423. <a class="nav-link page-scroll" href="#links">Links</a>
  424. </li>
  425. <li class="nav-item mr-3">
  426. <a class="nav-link page-scroll" href="#contact">Contact</a>
  427. </li>
  428. </ul>
  429. </div>
  430. </nav>
  431. <!--main section-->
  432. <section class="bg-texture hero" id="main">
  433. <div class="container">
  434. <div class="row d-md-flex brand">
  435. <div class="col-md-6 hidden-sm-down wow fadeIn">
  436. <img class="img-fluid mx-auto d-block" src="img/product.png"/>
  437. </div>
  438. <div class="col-md-6 col-sm-12 text-white wow fadeIn">
  439. <h2 class="pt-4">Experience <b class="text-primary-light">Shadow-Pipe </b> for FREE</h2>
  440. <p class="mt-5">
  441. The best gets even better. With our swift and fastest low ping private server, you'll not being worried again with our vpn services.
  442. </p>
  443. <p class="mt-5">
  444. <a href="#configs" class="btn btn-primary mr-2 mb-2 page-scroll">Try Now</a>
  445. <a href="#download" class="btn btn-white mb-2 page-scroll">Download App</a>
  446. </p>
  447. </div>
  448. </div>
  449. </div>
  450. </section>
  451. <!--features-->
  452. <section class="bg-light" id="features">
  453. <div class="container">
  454. <div class="row mb-3">
  455. <div class="col-md-6 col-sm-8 mx-auto text-center wow fadeIn">
  456. <h2 class="text-primary">Amazing Features of Shadow-Pipe</h2>
  457. <p class="lead mt-4">
  458. A plenty of awesome features to <br/>wow the users.
  459. </p>
  460. </div>
  461. </div>
  462. <div class="row mt-5 text-center">
  463. <div class="col-md-4 wow fadeIn">
  464. <div class="card">
  465. <div class="card-body">
  466. <div class="icon-box">
  467. <em class="ion-ios-game-controller-b-outline icon-md"></em>
  468. </div>
  469. <h6>Unlimited Gaming</h6>
  470. <p>
  471. Low ping & Optimized server for your best unlimited gaming experience.
  472. </p>
  473. </div>
  474. </div>
  475. </div>
  476. <div class="col-md-4 wow fadeIn">
  477. <div class="card">
  478. <div class="card-body">
  479. <div class="icon-box">
  480. <em class="ion-android-wifi icon-md"></em>
  481. </div>
  482. <h6>Cloudflare DNS</h6>
  483. <p>
  484. With the best DNS installed in our server to keep your connection at stable, streaming faster, download accelerated, & uploading boosted.
  485. </p>
  486. </div>
  487. </div>
  488. </div>
  489. <div class="col-md-4 wow fadeIn">
  490. <div class="card">
  491. <div class="card-body">
  492. <div class="icon-box">
  493. <em class="ion-ios-settings icon-md"></em>
  494. </div>
  495. <h6>Advanced Configs</h6>
  496. <p>
  497. All our SSH/OVPN/DROPBEAR/SSL are highly configurable to meet your VPN experience & satisfaction.
  498. </p>
  499. </div>
  500. </div>
  501. </div>
  502. <div class="col-md-4 wow fadeIn">
  503. <div class="card">
  504. <div class="card-body">
  505. <div class="icon-box">
  506. <em class="ion-ios-cloud-upload-outline icon-md"></em>
  507. </div>
  508. <h6>Unlimited Bandwidth</h6>
  509. <p>
  510. No capping and you can download/stream/browse all what you want without limitations.
  511. </p>
  512. </div>
  513. </div>
  514. </div>
  515. <div class="col-md-4 wow fadeIn">
  516. <div class="card">
  517. <div class="card-body">
  518. <div class="icon-box">
  519. <em class="ion-ios-locked-outline icon-md"></em>
  520. </div>
  521. <h6>Highly Secure</h6>
  522. <p>
  523. Our server is from best VPS Cloud service, with anti-torrent & anti-ddos installed for our servers go for a longer last.
  524. </p>
  525. </div>
  526. </div>
  527. </div>
  528. <div class="col-md-4 wow fadeIn">
  529. <div class="card">
  530. <div class="card-body">
  531. <div class="icon-box">
  532. <em class="ion-android-color-palette icon-md"></em>
  533. </div>
  534. <h6>More Features & Colors</h6>
  535. <p>
  536. With more future plans coming to keep this server colored and beautiful.
  537. </p>
  538. </div>
  539. </div>
  540. </div>
  541. </div>
  542. </div>
  543. </section>
  544. <section class="bg-white p-0">
  545. <div class="container-fluid">
  546. <div class="row d-md-flex mt-5">
  547. <div class="col-sm-6 p-0 wow fadeInLeft">
  548. <img class="img-fluid" src="img/whyus.png" alt="Why we Choose us">
  549. </div>
  550. <div class="col-sm-6 pl-5 pr-5 pt-5 pb-4 wow fadeInRight">
  551. <h3><a href="#"></a></h3>
  552. <p class="lead pt-4">VPN (virtual private network) is a technology that could make internet access you comfortable with eliminating prevention in accessing all sites. Giving new anonymous identity, disguise your original location and encrypts all traffic, such things make all data access and secure internet. Internet service provider or network operator, even the government, will not be able to check or filter your activity on the web.</p>
  553. Why you choose Shadow-Pipe?
  554. <ul class="pt-4 pb-3 list-default">
  555. <li><font color="green"><b>FREE at all</b></font></li>
  556. <li>Anonymous</li>
  557. <li>Safe</li>
  558. <li>Fast</li>
  559. <li>Low Ping</li>
  560. <li>Smooth</li>
  561. <li>The best of the BEST!</li>
  562. </ul>
  563. <a href="#configs" class="btn btn-primary mr-2 page-scroll">Get Started with Shadow-Pipe</a>
  564. </div>
  565. </div>
  566. </div>
  567. </section>
  568. <!--pricing-->
  569. <section class="bg-light" id="configs">
  570. <div class="container">
  571. <div class="row">
  572. <div class="col-md-6 offset-md-3 col-sm-8 offset-sm-2 col-xs-12 text-center">
  573. <h2 class="text-primary">Configs</h2>
  574. <p class="lead pt-3">
  575. Our OpenVPN configs.
  576. </p>
  577. </div>
  578. </div>
  579. <div class="row d-md-flex mt-4 text-center">
  580. <div class="col-sm-4 mt-4 wow fadeIn">
  581. <div class="card">
  582. <div class="card-body">
  583. <h5 class="card-title pt-4 text-orange">OpenVPN</h5>
  584. <h3 class="card-title text-primary pt-4">TCP</h3>
  585. <p class="card-text text-muted pb-3 border-bottom">Default Config</p>
  586. <ul class="list-unstyled pricing-list">
  587. <li>Port: 1153</li>
  588. <li>TCP Connection</li>
  589. <li>Stable</li>
  590. <li>Fast &amp; Smooth</li>
  591. </ul>
  592. <a href="/client.ovpn" class="btn btn-primary btn-radius">Download</a>
  593. </div>
  594. </div>
  595. </div>
  596. <div class="col-sm-4 mt-0 wow fadeIn">
  597. <div class="card pt-4 pb-4">
  598. <div class="card-body">
  599. <h5 class="card-title pt-4 text-orange">OpenVPN</h5>
  600. <h3 class="card-title text-primary pt-4"><sup></sup>SSL</h3>
  601. <p class="card-text text-muted pb-3 border-bottom">Default config</p>
  602. <ul class="list-unstyled pricing-list">
  603. <li>Port: 443</li>
  604. <li>OpenVPN over SSL</li>
  605. <li>Stable</li>
  606. <li>Fast &amp; Smooth</li>
  607. </ul>
  608. <a href="/clientssl.ovpn" class="btn btn-primary btn-radius">Download</a>
  609. </div>
  610. </div>
  611. </div>
  612. <div class="col-sm-4 mt-4 wow fadeIn">
  613. <div class="card">
  614. <div class="card-body">
  615. <h5 class="card-title pt-4 text-orange">OpenVPN Package <small class="badge bg-primary small-xs">HOT</small></h5>
  616. <h3 class="card-title text-primary pt-4"><sup></sup>Combo</h3>
  617. <p class="card-text text-muted pb-3 border-bottom">zip packed</p>
  618. <ul class="list-unstyled pricing-list">
  619. <li>TCP &amp; SSL</li>
  620. <li>With stunnel.conf</li>
  621. <li>For modem used</li>
  622. <li>Zip packed</li>
  623. </ul>
  624. <a href="/openvpn.zip" class="btn btn-primary btn-radius">Download</a>
  625. </div>
  626. </div>
  627. </div>
  628. </div>
  629. </div>
  630. </section>
  631. <!--download-->
  632. <section class="bg-orange pt-0" id="download">
  633. <div class="container">
  634. <div class="row d-md-flex text-center wow fadeIn">
  635. <div class="col-md-6 offset-md-3 col-sm-10 offset-sm-1 col-xs-12">
  636. <h5 class="text-primary">Download Our Mobile App</h5>
  637. <p class="mt-4">
  638. Download our provided apps for free for your android phone & pc.
  639. <p class="mt-5">
  640. Shadow-Pipe<br><a href="#" class="mr-2" target="_blank"><img src="img/google-play.png" class="store-img"/></a> </p>
  641. </div>
  642. </div>
  643. </div>
  644. </section>
  645. <script src="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/jquery-3.1.1.min.js></script>
  646. <script src="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/umdpopper.min.js"></script>
  647. <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
  648. <script src="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master//jquery.easing.min.js"></script>
  649. <script src="https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/wow.js"></script>
  650. <script src="js/scripts.js"></script>
  651. </body>
  652. </html>
  653. END
  654. # Unpack hiratechi homepage
  655. cd /home/panel/html
  656. wget "https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/hiratechihomepage.zip"
  657. unzip hiratechihomepage.zip
  658. rm hiratechihomepage.zip
  659. cd
  660. # Create and Configure rc.local
  661. cat > /etc/rc.local <<-END
  662. #!/bin/sh -e
  663. exit 0
  664. END
  665. chmod +x /etc/rc.local
  666. sed -i '$ i\echo "nameserver 1.1.1.1" > /etc/resolv.conf' /etc/rc.local
  667. sed -i '$ i\echo "nameserver 1.0.0.1" >> /etc/resolv.conf' /etc/rc.local
  668. sed -i '$ i\iptables-restore < /etc/iptables.up.rules' /etc/rc.local
  669. # Configure menu
  670. cd /usr/local/bin/
  671. wget "https://raw.githubusercontent.com/radzvpn/TNTNOLOADDNS/master/premiummenu.zip"
  672. unzip premiummenu.zip
  673. chmod +x /usr/local/bin/*
  674. # add eth0 to vnstat
  675. vnstat -u -i eth0
  676. # compress configs
  677. #cd /home/panel/html
  678. #zip openvpn.zip client.ovpn clientssl.ovpn stunnel.conf
  679. # install libxml-parser
  680. apt-get install -y libxml-parser-perl
  681. # finalizing
  682. vnstat -u -i eth0
  683. apt-get -y autoremove
  684. chown -R www-data:www-data /home/panel/html
  685. service nginx start
  686. service php7.3-fpm start
  687. service vnstat restart
  688. service openvpn restart
  689. service dropbear restart
  690. service fail2ban restart
  691. service squid restart
  692. #clearing history
  693. history -c
  694. -rf /root/*
  695. cd /root
  696. # info
  697. clear
  698. echo " "
  699. echo "Installation has been completed!!"
  700. echo "YOUR VPS WILL REBOOT IN 60 SECONDS"
  701. echo "DO NOT PRESS CTRL + C or cancel"
  702. echo "OR ELSE THE SETUP WILL FAILED"
  703. echo " "
  704. echo "--------------------------- Configuration Setup Server -------------------------"
  705. echo " Copyright HostingTermurah.net "
  706. echo " Remodified by RadzVPN "
  707. echo "--------------------------------------------------------------------------------"
  708. echo "" | tee -a log-install.txt
  709. echo "Server Information" | tee -a log-install.txt
  710. echo " - Timezone : Asia/Manila (GMT +8)" | tee -a log-install.txt
  711. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  712. echo " - IPtables : [ON]" | tee -a log-install.txt
  713. echo " - Anti DDOS : [ON]" | tee -a log-install.txt
  714. echo " - Auto-Reboot : [OFF]" | tee -a log-install.txt
  715. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  716. echo " - Anti Torrent: [ON]" | tee -a log-install.txt
  717. echo " - Protection : [ON]" | tee -a log-install.txt
  718. echo " - DNS SERVER : Cloudflare DNS (OpenVPN only)" | tee -a log-install.txt
  719. echo "" | tee -a log-install.txt
  720. echo "Application & Port Information" | tee -a log-install.txt
  721. echo " - OpenVPN : TCP 1153 " | tee -a log-install.txt
  722. echo " - OpenVPN SSL : 443 " | tee -a log-install.txt
  723. echo " - Dropbear : 442" | tee -a log-install.txt
  724. echo " - Stunnel : 444" | tee -a log-install.txt
  725. echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
  726. echo " - Nginx : 80" | tee -a log-install.txt
  727. echo "" | tee -a log-install.txt
  728. echo "Premium Script Information" | tee -a log-install.txt
  729. echo " To display list of commands: menu" | tee -a log-install.txt
  730. echo "" | tee -a log-install.txt
  731. echo "Important Information" | tee -a log-install.txt
  732. echo " - Download Config OpenVPN : For TCP http://$MYIP/client.ovpn" | tee -a log-install.txt
  733. echo " - Download Config OpenVPN : For SSL http://$MYIP/clientssl.ovpn" | tee -a log-install.txt
  734. echo " - Download Config OpenVPN : For Package http://$MYIP/openvpn.zip" | tee -a log-install.txt
  735. echo " - Your Website : Go to http://$MYIP/ now to see!" | tee -a log-install.txt
  736. echo " - Installation Log : Type command log-install" | tee -a log-install.txt
  737. echo " - Webmin : http://$MYIP:10000/" | tee -a log-install.txt
  738. echo ""
  739. sleep 55
  740. reboot