One-click installation script for dante socks5 in linux

Source: Internet
Author: User
Tags centos


Danted Socks5 one-click installation script

* ***** Features

1. Use the latest stable version 1.4.0 for compilation and installation.
2. Automatically identify the system IP address (192.168.0. *, 10.0.0. *, 127.0.0. * are excluded by default). When detecting multiple Ip addresses, perform interactive Ip selection configuration (directly press enter to configure all IP addresses ).
3. Use Pam user authentication. You do not need to add system users for authentication (the process User sock is added by default). It is convenient and secure to delete or add users.
4. Check the running status of sock5.
5. The system is automatically loaded after it is started.
6. Optional authentication methods: no user name and password, system user name and password, Pam user name and password
7. Supports Centos/Debian and automatically identifies the system for installation and configuration.
8. Customize the client connection authentication method. You can set some Ip addresses/IP segments to connect without authentication.
* ***** Unresolved issues
1. Analyze log statistics on users connected to sock5.
2. Ubuntu/Redhat is not tested.
* ***** Installation instructions

1. Download
1
Wget -- no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh-O install. sh

2. [optional] modify the default parameter. DEFAULT_PORT is the default port, DEFAULT_USER PAM user name, and masterult_pawd PAM user password MASTER_IP is the authentication-free white list (domain name, IP optional: for example, the default buyvm.info or the specific Ip address 8.8.8.8/32)
3. After the modification, execute bash install. sh.
4. If Dante Server Install Successfuly is displayed after the running is complete! It indicates that the request is successful. Display Dante Server Install Failed! This indicates that the installation failed. Please leave a message to the operating system + specific questions.
* ***** Instructions for use after installation

1. Command parameter/etc/init. d/danted {start | stop | restart | status | add | del}
2. restart sock5/etc/init. d/danted restart or service danted restart.
3. Disable sock5/etc/init. d/danted stop or service danted stop
4. Enable sock5/etc/init. d/danted start or service danted start
5. View sock5 status/etc/init. d/danted status or service danted status
6. add SOCK5 PAM user/change password/etc/init. d/danted add user name and password
7. Delete the SOCK5 PAM user/etc/init. d/danted del User name
8. Configuration file path/etc/danted/conf/
9. log record path/var/log/danted. *. log
10. danted help command danted-help

* ***** Precautions

1. Most browsers (except Opera) do not support S5 with password authentication. Therefore, you need to install software such as proxifier/proxycap on your computer for verification.
2. If it is a fixed IP address or Ip address segment, you can modify the configuration file and set whitelist access.
Go to/etc/danted/conf/and find the configuration file.
Modify from: Master_IP/32 to: 0.0.0.0/0 in the first client pass {} module. change Master_IP/32 to the Ip segment/Ip address of the proxy, for example, 114.114.114.0/24 or 5.5.5.5/32. multiple Access sources. Copy multiple client pass {} modules.
Restart the Danted process service danted restart
If the 64-bit centos system fails to be tested, add a command cp/lib/security/pam_pwdfile.so/lib64/security/

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.