What's new

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

Status
Not open for further replies.
useradd enterusernamehere

yang enterusernamehere yan ang mismong username na gusto mo gawin..


example:


useradd rexzero

walang response after mo ma enter yan meaning nakagawa kana ng account na ang username ay rexzero..

para naman sa gusto mong password dun sa ginawa mong user.



passwd enterusernamehere

yang enterusernamehere yan ung account na ginawa mo example yung rexzero after mo ma enter niyan mag aask yan ng password mag type ka ng password twice naka hidden po pag nagttype ka ng password kaya be careful sa pag type pag ok na

meron kanang user at password para sa ginawa mong account


PS: BAWAL PO gumawa ulit ng rexzero na username mag isip ka nalang ng bago
Ayun na gets ko din salamat sir okay na sya
 
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 fafs :)
 
Status
Not open for further replies.

Users search this thread by keywords

  1. 301 move permanently
Back
Top