Example of installing the SOCKS5 proxy server DANTE-SERVER in UBUNTU 12.04

Source: Internet
Author: User
Tags bind


Dante-server is a good software for S4/5 proxy servers.

Install with apt-get

Apt-get install dante-server

Add a user

Useradd proxyuser
Passwd proxyuser
Prohibit proxyuser from logging on to the system (security considerations)

Sudo vim/etc/passwd

Change the shell of proxyuser to/bin/false.

Configure danted. conf

Sudo mv/etc/danted. conf/etc/danted. conf_old
Sudo vim/etc/danted. conf
Enter the following content:


#
# Logoutput: stderr
# Logoutput: syslog
Logoutput:/var/log/sockd. log
 
Internal: 0.0.0.0 port = 10080
 
External: eth0
 
# Method: username none
# Method: pam
Method: username
 
User. privileged: root
 
User. notprivileged: proxyuser
 
User. libwrap: nobody
 
Compatibility: sameport
Compatibility: reuseaddr
Extension: bind
 
Client pass {
 
From: 0.0.0.0/0 to: 0.0.0.0/0
 
Log: connect disconnect error
 
}
 
Pass {
 
From: 0.0.0.0/0 to: 0.0.0.0/0
 
Command: bind
 
Log: connect disconnect error
 
}
 
Pass {
 
From: 0.0.0.0/0 to: 0.0.0.0/0
 
Command: bindreply udpreply
 
Log: connect error
 
}
 
Pass {
 
From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
 
Protocol: tcp udp
 
}
 
Pass {
 
From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
 
Command: udpassociate
 
}
 
# Block {
# From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
# Protocol: tcp udp
# Log: connect erro
#}
Create a log folder

Mkdir/var/log/sockd

Start dante-server


/Etc/init. d/danted start

Check whether the listener is successful:

Netstat-anp | grep 10080

Now you can use socks5.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.