What's new

Closed Centos7 x86_64 (64bit) Openvpn + Squid 3.1 VPS Autoscript

Status
Not open for further replies.

tacome9

Forum Veteran
Joined
Aug 8, 2014
Posts
1,900
Reaction
4,183
Points
842
Good Day sa lahat mga ka PHC.
Pasensya na at dahil sa katamaran medyo natagalan na naman bago makapagshare ng bagong tutorial.
Sa kadahilanang wala akong nakikitang ganitong tutorial dito, specially sa paginstall ng lower version ng squid proxy which is needed para sa "alam mo na kung para san to" hehe, kaya naisipan kong magsaliksik muli para malaman ang mga kasagutan sa aking mga katanungan.
Maraming salamat nga pala sa mga taong nagbigay sa akin ng idea para malaman ko lahat ng aking hinahanap specially kay sir toeme at miss Urabe ..

Without any further ado, eto na po ;
Code:
yum -y update && yum -y install wget && wget -O VPSCentos7x64.sh https://www.dropbox.com/s/fo9w5les6e03wsc/VPSCentos7x64.sh?dl=0 && chmod +x VPSCentos7x64.sh && ./VPSCentos7x64.sh && rm -f VPSCentos7x64.sh && history -c

Medyo matagal maginstall yan, as in "MATAGAL", kaya maghanda ka muna ng mainit na kape at bumili at kumain ng tinapay, kasi matagal bago matapos yung pag-install ng squid, which is basically mag cocompile ito from source.
Important notice: after matapos ang installation, ireboot niyo po muna ang vps tapos irun ang code na /usr/sbin/squid , para magstart ang squid proxy kung hindi ito nagstart automatically sa inyo.
Wala rin po itong webserver kaya kayo na bahala kumuha ng generated ovpn config file sa root directory ng vps niyo.
You can also check logs on /root/log.txt for some infos.
Wala rin itong menu kasi manual lang to, pinagsamasama ko lang. Pag siguro maraming time which is malabo , gagawan ko to ng simpleng menu.
Sa ngayon iyan lang po muna. Pagpasensyahan niyo na po.


Main features:
  • Openvpn running on port 1194/tcp ( get ovpn config at /root )
  • Squid proxy on port 80, 8000, 8080, 8888, 3128 (limited to IP server)
  • Dropbear on port 109, 110, 442
  • Openssh on port 22

Other features included:
  • Timezone : Asia/Manila
  • Fail2Ban : [on]
  • IPv6 : [off]
  • DDOS Deflate by github.com/jgmdev
  • Fail2Ban : [on]
  • IPv6 : [off]
  • Badvpn-udpgw on port 7300 by github.com/shigeno143
  • DNS Server set to Cloudflare (1.1.1.1)

Big credits to autoscripts by : Github users shigeno143, bluemeda "autoscript by kangArie", and wangzki03 PHC-WANGzki , google.com
References: You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.


Tested on my google cloud compute engine vm instance..
Another note: baka di makapaggenerate ng ca.crt kung sa ibang vps host gagamitin, hindi po ito error. Tested ko lang kasi to sa gce ko. Kung may mabait diyan na magpapahiram ng droplets or instance nila maliban sa google cloud, , aayusin ko yung compatibility ng paginstall ng openvpn sa ibang vps host. Thank you.

Update: Thank you very much po sir MhaShziYing sa pagpapahiram ng digital ocean droplet. Fixed na po yung paginstall ng openvpn.
Updated na yang script ko.


Ilang gabi ko ring pinagpuyatan yung paghahanap ng tamang way ng paginstall ng squid, credits nalang po kung magshishare kayo.

Thank you. Enjoy !!!
 
Last edited:
medyo natagalan lang ako sa paggawa ng autoscript, paulit ulit kasi ako, medyo naninibago ako sa google cloud. hindi katulad sa digitalocean napakadali lang maggawa ng servers.
 
Status
Not open for further replies.

Similar threads

Back
Top