Install Dante Socks Proxy Centos Iso
Updated by Linode Contributed by Andrew Lescher
Dante is a free implementation of the following proxy protocols: socks version 4, socks version 5 (rfc1928), and msproxy. It can be used as a firewall between networks. It is being developed by Inferno Nettverk A/S, a Norwegian consulting company. How to divert incoming all tcp packets at eth0 to socks proxy and to eth1 of same host? Is 2 x 500GB sata on Centos 6 sda3/sdb3 is software RAID1 sda1/sdb1 = ext3. How to setup SOCKS proxy. Optionally, you can configure your system to use this SOCKS proxy for all outgoing connections. To forward your IRC connections in LimeChat through your DigitalOcean VPS (warning you might get DDoS'd) edit Server Properties > Details (see LimeChat Proxy Preferences) Enter localhost for the SOCKS server and 10000 for the port. Re: Dante SOCKS Proxy + IPTables Post by TrevorH » Sat Jun 25, 2016 11:02 am You use firewall-cmd to manipulate the rules so man firewall-cmd is a good start. Install Dante Socks Proxy Centos Download. 1/30/2018 0 Comments Dante - A free SOCKS server - Dante - - - - - - - Dante - A free SOCKS server Dante is a product developed by Inferno Nettverk A/S. It consists of a SOCKS server and a SOCKS client, implementing RFC 1928 and related standards. It is a flexible product that can be used to provide.
Report an Issue View File Edit File
Shadowsocks is a lightweight SOCKS5 web proxy tool primarily utilized to bypass network censorship and blocking on certain websites and web protocols. A full setup requires a Linode server to host the Shadowsocks daemon, and a client installed on PC, Mac, Linux, or a mobile device. Unlike other proxy software, Shadowsocks traffic is designed to be both indiscernible from other traffic to third-party monitoring tools, and also able to disguise itself as a normal direct connection. Data passing through Shadowsocks is encrypted for additional security and privacy.
Since there is currently no Shadowsocks package available for Ubuntu or CentOS, this guide shows how to build Shadowsocks from source.
Before You Begin
The commands in this guide require root privileges. To run the steps as an elevated user with sudo privileges, prepend each command with
sudo
. If two commands are presented in the same instance (separated by&&
), remember to usesudo
after the&&
(ex.sudo [command] && sudo [command]
). To create a standard user account withsudo
privileges, complete the Add a Limited User Account section of our Securing your Server guide.A working firewall is a necessary security measure. Firewall instructions will be presented for UFW, FirewallD, and Iptables. To configure a firewall on your Linode, visit one of our guides:
Install the Shadowsocks Server
Download Source Code and Dependencies
Update system repositories, then download and install dependencies:
Ubuntu 16.04
CentOS 7
Navigate to the
/opt
directory and download the Shadowsocks Git module:Install Shadowsocks-libev:
Configure the Shadowsocks Server
Create a new system user for Shadowsocks:
Ubuntu 16.04
CentOS 7
Create a new directory for the configuration file:
Create the Shadowsocks config file at
/etc/shadowsocks/shadowsocks.json
. Paste the contents listed below into the file, noting the instructions in the shadowsocks.json Breakdown table for each property. Follow these instructions to determine the value you should set for each property.- /etc/shadowsocks/shadowsocks.json
shadowsocks.json Breakdown
Property | Explanation | Possible Values |
---|---|---|
server | Enter your server’s public IP address. | User determined |
server_port | Shadowsocks will listen on this port. Use the default value of 8388 . | User determined |
password | Connection password. Set a strong password. | User determined |
timeout | Connection timeout in seconds. The default value should be sufficient here. | User determined |
method | Encryption method. Using AEAD algorithms is recommended. | See Stream Ciphers and AEAD Ciphers |
fast_open | Reduces latency when turned on. Can only be used with kernel versions 3.7.1 or higher. Check your kernel version with uname -r . | true, false |
nameserver | Name servers for internal DNS resolver. | User determined |
Optimize Shadowsocks
Apply the following optimizations to your system kernel to provide for a smooth running Shadowsocks installation.
Create the
/etc/sysctl.d/local.conf
system optimization file and paste the contents shown below into your file:Caution
These settings provide the optimal kernel configuration for Shadowsocks. If you have previously configured your system kernel settings for any reason, make sure no conflicts exist.- /etc/sysctl.d/local.conf
Apply optimizations:
Create a Shadowsocks Systemd Service
The Shadowsocks systemd service allows the daemon to automatically start on system boot and run in the background.
Create a systemd file with the following content:
- /etc/systemd/system/shadowsocks.service
Enable and start
shadowsocks.service
:
Open Firewall Port for Shadowsocks Client
Depending on your preference, you may use either the iptables, UFW, or firewalld (CentOS 7 only) commands to complete this section.
Open port 8388
for the Shadowsocks Client:
Iptables
UFW
FirewallD
Install a Shadowsocks Client
The second stage to a Shadowsocks setup is to install a client on the user’s device. This could include a computer, mobile device, tablet, and even home network router. Supported operating systems include Windows, macOS, iOS, Linux, Android, and OpenWRT.
macOS Shadowsocks Client
Download the ShadowsocksX-NG GUI Client for macOS:
Launch the application on your Mac. The app preferences will be available from a new status menu bar icon. Select the Server Preferences menu item:
In the Server Preferences window, click on the + (plus-sign) button in the lower left. Enter the details for your Shadowsocks Linode. Be sure to select the same port and encryption scheme that you listed in your Linode’s
shadowsocks.json
file. Afterwards, close the window:In the Shadowsocks menu, make sure that Shadowsocks is turned on and that the Global Mode item is selected:
Verify that your Shadowsocks connection is active by visiting an IP address lookup website like ifconfig.co. When your connection is working as expected, the website will list your Shadowsocks Linode’s public IP.
Windows Shadowsocks Client
Navigate to the Windows Shadowsocks page. Click on Shadowsocks-4.0.4.zip under Downloads.
Extract the contents of the .zip file into any folder and run
Shadowsocks.exe
. Shadowsocks will run as a background process. Locate the Shadowsocks icon in the taskbar (it may be in the Hidden Icons taskbar menu), right-click on the Shadowsocks icon, then click on Edit Servers. Enter the information that you saved in theshadowsocks.json
file:Right-click on the Shadowsocks icon again. Mouse over PAC and select both Local PAC and Secure Local PAC.
To confirm that your Linode’s IP address is selected, mouse over Servers.
Verify that your Shadowsocks connection is active by visiting an IP address lookup website like ifconfig.co. When your connection is working as expected, the website will list your Shadowsocks Linode’s public IP.
Where to Go from Here
Once your Shadowsocks server is online, configure a client on your mobile phone, tablet, or any other devices you use. The Shadowsocks client download page supports all mainstream platforms.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
Join our Community
This guide is published under a CC BY-ND 4.0 license.
Dante socks5 server (v1.3.2) auto-install and management script
About
To build a socks5 server, we have lots of open-source programs to reach that, Dante is one of them.I have been using Dante for years and starting to write this auto-install and management script two years ago.This is the second update to match the systemd and new OS release like Debian 8 , CentOS 7.
Comparing with the apt-get or building from source manually, this script will benefit you bellow
Install Dante Socks Proxy Centos Iso 7
- Auto-recognize, detect the machine's system automatically and compile from source code.
- Auto-config, check the system's network or read from argument to auto-generate config file.
- Same-rotation, in multi-ipaddr system. It works like when using different ip address to connect socks5, your external ip address will be different. That's the main reason why I using Dante for years.
- Multi-authorization, you can configure authorization by pam, system or using whitelist.
Install
- if you want to uninstall, using this command
- if you want to add user
Options
Long Option | Short Option | Value refer | description |
---|---|---|---|
--ip= | ip address list (a.a.a.a:b.b.b.b) *#change ';' to ':' * | Socks5 Server Ip address | |
--port= | Default: 2016 | port for dante socks5 server | |
--user= | Pam-Auth Username | Socks5 Auth user | |
--passwd= | Pam-Auth Password | Socks5 Auth passwd | |
--whitelist= | whitelist ip range (a.a.a.a/32:b.b.b.b/32) | Socks5 Auth IP list | |
--whitelist-url= | online white list file (url) | Socks Auth whitelist http online | |
--from-package | -p | -- | Install package from Bin package |
--update-whitelist | -u | -- | update white list |
--force | -f | -- | force install sockd |
--help | -h | -- | print help info |
Install Dante Socks Proxy Centos Iso Download
Management
command | option | description |
---|---|---|
service sockd start | /etc/init.d/sockd start | start socks5 server daemon |
service sockd stop | /etc/init.d/sockd stop | stop socks5 server daemon |
service sockd restart | /etc/init.d/sockd restart | restart socks5 server daemon |
service sockd reload | /etc/init.d/sockd reload | reload socks5 server daemon |
service sockd restart | /etc/init.d/sockd restart | restart socks5 server daemon |
service sockd status | systemd process status | |
service sockd state | /etc/init.d/sockd state | running state |
service sockd tail | /etc/init.d/sockd tail | sock log tail |
service sockd adduser | /etc/init.d/sockd adduser | add pam-auth user: service sockd adduser NAME PASSWORD |
service sockd deluser | /etc/init.d/sockd deluser | delete pam-auth user: service sockd deluser NAME |
Test Pass
Buy Socks Proxy
OS release | Platform | Provider | Result |
---|---|---|---|
Debian GNU/Linux 8 (jessie) | x86_64 | vultr | pass |
Debian GNU/Linux 7 (wheezy) | x86_64 | vultr | pass |
Debian GNU/Linux 7 (wheezy) | i686 | vultr | pass |
Ubuntu 16.10 (Yakkety Yak) | x86_64 | vultr | pass |
Ubuntu 14.04.5 LTS | i686 | vultr | pass |
CentOS Linux 7 (Core) | x86_64 | vultr | pass |
CentOS Linux 6 | x86_64 | vultr | pass |
CentOS Linux 6 | i686 | vultr | pass |