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

Status
Not open for further replies.
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 !!!


maam pwd ko ba e change port server.conf nya? ano po ba command maam?
 
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 !!!
Thank you po dito. wala padin po ba bugs to master?
 
meron ka pa bang copy nung binigay ko sayo ok lang naman na iinclude mo yung compiled binary ng rpm ng 3.1.23 sa script mo .. anyway .

heto modded/paatched ng 3.5.20 squid for centos 7
You do not have permission to view the full content of this post. Log in or register now.

heto namang 3.5.23 squid patc hed/modded for Debian 9
You do not have permission to view the full content of this post. Log in or register now.

for everyone .. just incase .. download and put to your vps ang rpm for centos and deb for debian 9 .. make sure to backup squid.conf and then kill the squid manually
sudo pkill -9 squid

For Centos 7
sudo yum install squid-3.5.20-12.el7.1.x86_64.rpm
or if you already have untouched squid 3.5.20
sudo yum downgrade squid-3.5.20-12.el7.1.x86_64.rpm

For Debian9
sudo apt install ./squid_3.5.23-5+deb9u1_amd64.deb --allow-downgrades
saan folder po e uupload yong moded squid?
 
toeme pa sample pwde kung pano or saan ilagay yung modded squid?sinubukan ko lagay kahit saan pero not avalable ang response..
After mong ma upload yung rpm or deb file na pinost ko sa vps mo try to search it (you can use find command) then use the exact path kung san sya na palagay or better yet use this command (see screenshot)

Screenshot_20190820_214849.png
 
up natin.. since maynagshare na ng payload. need minor modification nalng sa config wait natin boss tacome or other member na napagana gamit itong script sa noload.
 
Status
Not open for further replies.

About this Thread

  • 407
    Replies
  • 22K
    Views
  • 107
    Participants
Last reply from:
tacome9

Trending Topics

Online now

Members online
1,262
Guests online
1,503
Total visitors
2,765

Forum statistics

Threads
2,273,465
Posts
28,949,701
Members
1,235,757
Latest member
Bloomes
Back
Top