What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

ovpn OVPN Script - MULTIPLE SERVERS and PAYLOAD

jayendecastro

Eternal Poster
Established
Joined
Jan 11, 2017
Messages
1,098
Reaction score
464
, Last edited:
Sa kakakalikot ko at konteng help ni gugel nagtry lang ako gumawa ng ovpn config na may MULTIPLE PAYLOAD, MULTI SERVER, MULTIPLE PROXY.

For convenience lang nmn to kasi sa mga kids ko na lage nagask pag down ung server na gamit nila para matic na magswitch kung may problem ung server.

For me ginagamit ko toh sa vpnsplit.com
They have 13 servers, decent ang speed at ping, and 30days validity bawat account. And same username at pass kasi din.

Eto ung script na ilagay sa config nyo

remote-random
remote [server IP] [port]
remote [server IP] [port]
remote [server IP] [port]
Lagay nyo lang jan...
Syempre nasa script nyo n dapat ung script for http-proxy... Depende ba senyo kung ano gamit nyo na method kung POST, PUT, CONNECT
Yan eh para lang sa servers na same country and kakagat sa http-proxy na gagamitin nyo.

Pag ibat ibang country na iba iba din ang proxy eh need natin specify ung proxy for each server. So ganto na script nea

remote-random

<connection>
remote 216.176.190.138 443
http-proxy 216.176.190.138 8080
</connection>

<connection>
remote 66.70.188.37 443
http-proxy 66.70.188.37 8080
</connection>

<connection>
remote 51.15.6.91 443
http-proxy 51.15.6.91 8080
</connection>
So yan sa multiserver.

Sa multipayload naman almost the same thing. Isasama mo lang ung server at http-proxy commands sa isang group

remote-random

<connection>
remote 216.176.190.138 443
http-proxy 216.176.190.138 8080
http-proxy-retry
http-proxy-option CUSTOM-HEADER ""
http-proxy-option CUSTOM-HEADER "PUT You must register or login to view this. HTTP/1.1"
http-proxy-option CUSTOM-HEADER "Host: viber.com"
http-proxy-option CUSTOM-HEADER "X-Online-Host: viber.com"
http-proxy-option CUSTOM-HEADER "X-Forward-Host: viber.com"
http-proxy-option CUSTOM-HEADER "Connection: Keep-Alive"
http-proxy-option CUSTOM-HEADER "Proxy-Connection: Keep-Alive"
dhcp-option DNS 1.1.1.1
dhcp-option DNS 1.0.0.1
</connection>
Pwede ka gamit ng ibat ibang proxy at payload sa iisang server at magtry sya magconnect isa isa pag failed ung mga servers/payload/proxy

Ramdom ang pag pili ng server jan..pag may prefer ka na server na gusto mo un ang una kumonek eh alisin mo lang ung "remote-random" line at magkokonek na yan based sa entry ng servers na nilagay mo.

Pag connected at di ka satisfied..connect disconnect lang.

If meron na neto dito pamention na lang sa orig at credits to him/her.. 👍👍👍

Source : Reference manual for OpenVPN 2.4 - You must register or login to view this.

Edit: my config attached 👌👌
 

Attachments

Online statistics

Members online
1,339
Guests online
1,413
Total visitors
2,752

Forum statistics

Threads
849,479
Messages
15,051,479
Members
1,370,602
Top