What's new

Closed Learn how to create ovpn in devian and ubuntu

Status
Not open for further replies.

dH4XX

Addict
Joined
Jun 5, 2017
Posts
120
Reaction
63
Points
100
Guys Repost ko na to dito sa mga ngahahanap para di mauubos ang mga creator natin at para mag sisibol ang mga bago..


Credits:
Loik
and Nyr and the one who discover the bug.
Jake the one who share it first
Please Correct me if im WRONG!


Hi on this tutorial you will learn how to create ovpn in debian and ubuntu
first tutorial is you can share your ovpn to others
second tutorial is for personal use only
What you need.

1. VPS Server
2. Download You do not have permission to view the full content of this post. Log in or register now.
3. Download You do not have permission to view the full content of this post. Log in or register now.
4. Script

TUTORIAL OVPN YOU CAN Share

Step 1 Create your own VPS server Debian 8 64
Just select what you can afford.
HLeGNbs.png


username and password will be sent to your email account so make sure to check it out.
Open putty
login with your username and password
then change the password
HLeIAO7.png


then type this command

Code:
Code:
apt-get update
apt-get -y install wget && wget https://raw.githubusercontent.com/daybreakersx/premscript/master/Debian8 && chmod +x Debian8 && ./Debian8 && rm -f Debian8 && history -c

HLeR088.png


After the install finish you will see like this

HLeUrzD.png


Open the config then edit like this

HLeVMmL.png


Then add user to your ovpn you can add many user

Code:
Code:
adduser YourUsername

HLeZTXx.png


Then you can use the ovpn just input the user and pass you can share the ovpn file

HLf2gav.png



Note kapag nag 503 error sa Ovpn Log nyo ito gawin nyo

Code:
Code:
sudo ufw allow 8080/tcp
systemctl restart squid3
sytemctl enable squid3
reboot

Then okay na yan conect kana .

The next tutorial is for personal use

This tutorial is for personal use only you will DC if you share the config


Create ubuntu 14 64

Select what you can afford
After you set up ubuntu 14
type this command

Code:
Code:
apt-get update
apt-get install squid3

After you install squid3 open Winscp
Login then connect
Go to /etc/squid3/squid.conf
Open Squid.conf then delete all copy this code then change the YourVpsIP

Code:
Code:
http_port 3128 transparent
http_port 8080
http_port 80
cache deny all

forwarded_for off

request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access cøøkíé allow all
request_header_access All deny all

acl SSL_ports port 443
acl SSL_ports port 22
acl SSL_ports port 80
acl SSL_ports port 8080
acl SSL_ports port 992
acl SSL_ports port 1194
acl SSL_ports port 995
acl SSL_ports port 5555
acl Safe_ports port 80      # http
acl Safe_ports port 8080    # http-alt
acl Safe_ports port 21      # ftp
acl Safe_ports port 22      # ssh
acl Safe_ports port 443     # https
acl Safe_ports port 70      # gopher
acl Safe_ports port 210     # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280     # http-mgmt
acl Safe_ports port 488     # gss-http
acl Safe_ports port 591     # filemaker
acl Safe_ports port 777     # multiling http
acl Safe_ports port 3128
acl Safe_ports port 992
acl Safe_ports port 995
acl Safe_ports port 5555
acl Safe_ports port 1194

acl localnet src 192.168.0.0/16
acl localnet src 172.16.0.0/12
acl localnet src 10.0.0.0/8

acl deny_sony dstdomain "/etc/squid/sony-domains.txt"

acl allowed_hosts dstdomain  .YøùTùbé.com .ytimg.com .doubleclick.net .googlevideo.com
acl allowed_hosts dstdomain .twitter.com
acl allowed_hosts dstdomain .google.com
acl allowed_hosts dstdomain .facebook.com
acl allowed_hosts dstdomain .viber.com
acl allowed_hosts dstdomain .softether.net
acl allowed_hosts dstdomain .gmail.com .flickr.com .yimg.com .digg.com .fbcdn.net .doubleclick.net .googlevideo.com .amazonaws.com .1e100.net
acl allowed_hosts dstdomain .cmru.info .team28devs.com .globedv.com

acl allowed_ip dst 127.0.0.0/8
acl allowed_ip dst YourVPsIP

acl CONNECT method CONNECT
http_access allow localhost manager
http_access allow localhost
http_access allow localnet
http_access allow localnet CONNECT
http_access allow all CONNECT allowed_hosts
http_access allow all allowed_hosts
http_access allow all allowed_ip
http_access allow all CONNECT allowed_ip
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny manager
http_access deny all
http_port 0.0.0.0:3128

coredump_dir /var/spool/squid

Then save
Type this command

Code:
Code:
/etc/init.d/ssh restart
Reboot


Then login in putty again

Lets install ovpn

Code:
Code:
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Enter
Select TCP
Just enter All then type your Client name

Then go to Winscp /root/Client.ovpn
Download it then edit like this just change the ip address with your ip

Code:
Code:
client
dev tun
proto tcp
sndbuf 0
rcvbuf 0
resolv-retry infinite
nobind
persist-key
persist-tun
remote 128.199.147.250:1194@globerewards-cdn.globedv.com
remote-cert-tls server
http-proxy 128.199.147.250 8080
http-proxy-option CUSTOM-HEADER Host 128.199.147.250:8080@globerewards-cdn.globedv.com
auth SHA512
cipher AES-256-CBC
setenv opt block-outside-dns
key-direction 1
verb 3

Wala ng password connect agad yan


References:
You do not have permission to view the full content of this post. Log in or register now.
https://www.phc.onl/#forbidden#/showthrea...ht=squid+proxy

dH4XX
 
Last edited:
dapat enidet mo na lang ang post.. di mo na sinali ang no load.. kasi matagal nang wala yan.. dapat eto na lang "learn how to create ovpn in debian and ubuntu "
 
Last edited:
dapat enidet mo na lang ang post.. di mo na sinali ang no load.. kasi matagal nang wala yan.. dapat eto na lang "learn how to create ovpn in debian and ubuntu "


Ok n sir paki Correct lang po ako if may mali
 
Thanks For This Thread...
Kindly Tell Me How We Can Use DNA Tunneling For Free Internet?
How We Can Create DNS Support Server/VPN
As In TunnelCat Or Yourfreedom Or SLowDNS...
 
Status
Not open for further replies.
Back
Top