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

Status
Not open for further replies.
try mong i run
sudo netstat -nltp | grep squid
or
sudo netstat -nltp

output should be
tcp6 0 0 :::80 :::* LISTEN 7056/(squid)
tcp6 0 0 :::8080 :::* LISTEN 7056/(squid)
tcp6 0 0 :::3128 :::* LISTEN 7056/(squid)
tcp6 0 0 :::8888 :::* LISTEN 7056/(squid)
tcp6 0 0 :::8000 :::* LISTEN 7056/(squid)

if listening naman lahat ng port .. then try to open mo sa browser yun [vpsip]:[port] ex.http://32.123.123:8080
if connection refused check mo vps provider mo ang setting for Network Security/Firewall baka di open ang port ..
pero pag naviview mo ang error page ng squid .. try to restart ang pc mo o even possible reinstall OpenVPN GUI
pero syempre try mo din namn sa phone kung the same issue ..
 
621574


Mga paps bakit po ayaw mag run ng (usr/sbin/squid) please pa help po... At paano kopo makokoha ang ovpn file kopo
 
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 !!!
wala na bang ibang gagalawing setup sa gce? like sa firewall po?
 
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,033
Guests online
1,348
Total visitors
2,381

Forum statistics

Threads
2,273,305
Posts
28,948,744
Members
1,235,695
Latest member
avery123
Back
Top