Jump to content

Pinned OpenVPN Server with UDP + TCP + Squid Proxy + ShadowSocksR


Recommended Posts

  • Superior Administrator
Posted (edited)

Configuring OpenVPN with UDP VPN + TCP VPN

 

First, get the script and make it executable :

 

curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh

 

Then run it :

 

./openvpn-install.sh

 

 

Configuring Steps:

 

Add IPTables:

 


iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE

iptables -t nat -A POSTROUTING -s 10.10.0.0/24 -o eth0 -j MASQUERADE

iptables -A INPUT -i eth0 -p udp --dport port -j ACCEPT

iptables -A INPUT -i eth0 -p tcp --dport port -j ACCEPT

iptables -A INPUT -i eth0 -p tcp --dport port -j ACCEPT

 

Copy Service:

 


cp /lib/systemd/system/openvpn\@.service /etc/systemd/system/tcpvpn\@.service

cp /lib/systemd/system/openvpn\@.service /etc/systemd/system/udpvpn\@.service

cp /lib/systemd/system/openvpn\@.service /etc/systemd/system/squidvpn\@.service

 

 

Duplicate Files:

 


cd /etc/openvpn/

cp server.conf udpvpn.conf

cp server.conf tcpvpn.conf

cp server.conf squidvpn.conf

 

 

Edit Files:

 

nano udpvpn.conf

 

[iCODE]---> Change 10.8.0.0 to 10.9.0.0[/iCODE]

 

nano tcpvpn.conf

 

[iCODE]---> Change 10.8.0.0 to 10.9.0.0[/iCODE]

 

nano squidvpn.conf

 

[iCODE] ---> Change 10.8.0.0 to 10.10.0.0[/iCODE]

 

Restart Services:

 

service openvpn@udpvpn restart

service openvpn@tcpvpn restart

service openvpn@squidvpn restart

Edited by _.:=iTake=:._
  • Like 2
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Superior Administrator
Posted (edited)

Configuring Squid Proxy Server

 

sudo apt-get update

sudo apt-get install squid

sudo apt-get install squid3

 

 

Change directory

 

 


cd /etc/squid

cd /etc/squid3

 

 

Open squid.conf

 

nano squid.conf

 

Search http_port 3128

 

Change the 3128 to any port eg. 5421

 

Uncomment:

 

http_access deny all

 

Add:

 

http_access allow all

acl Safe_ports port number(replace with port number)

acl SSL_ports port number(replace with port number)

 

 

These are the lines you add or change:

 

 


http_port 5421

http_access allow all

acl Safe_ports port number(replace with port number)

acl SSL_ports port number(replace with port number)

 

Restart Squid Server:

 


sudo service squid restart

sudo service squid3 restart

Edited by _.:=iTake=:._
  • Like 1
  • Superior Administrator
Posted (edited)

Configuring ShadowsocksR Super Fast Secure Proxy

 

Log in as the root user and run the following command:

 

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh
chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log

 

Or Try the four in One Script

 

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

 

 

After the installation is complete, the script prompts as follows:

 

Congratulations, ShadowsocksR server install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Protocol         :your_protocol
Your obfs             :your_obfs
Your Encryption Method:your_encryption_method

Welcome to visit:https://shadowsocks.be/9.html
Enjoy it!

 

Uninstall method:

Log in as root and run the following command:

 


./shadowsocksR.sh uninstall

 

After the installation is complete, ShadowsocksR is started in the background and runs:

 


/etc/init.d/shadowsocks status

 

You can see if the ShadowsocksR process has started.

After the script is installed, ShadowsocksR has been automatically added to boot and self-start.

 

Use the command:

Start: /etc/init.d/shadowsocks start
Stop: /etc/init.d/shadowsocks stop
Restart: /etc/init.d/shadowsocks restart
Status: /etc/init.d/shadowsocks status

Configuration file path: /etc/shadowsocks.json
log file path: /var/log/shadowsocks.log
code installation directory: /usr/local/shadowsocks

 

Multi-user configuration example:

 

{
"server":"0.0.0.0",
"server_ipv6": "[::]",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
   "8989":"password1",
   "8990":"password2",
   "8991":"password3"
},
"timeout":300,
"method":"aes-256-cfb",
"protocol": "origin",
"protocol_param": "",
"obfs": "plain",
"obfs_param": "",
"redirect": "",
"dns_ipv6": false,
"fast_open": false,
"workers": 1
}

 

If you want to modify the configuration file, please refer to:

 

This is the hidden content, please

This is the hidden content, please

This is the hidden content, please

Edited by _.:=iTake=:._
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
×
GloTorrents Community Forum
Home
Activities
Sign In
Search
More
×