少於 1 分鐘閱讀

Install Dante Server

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install dante-server

Configuration

$ vim /etc/danted.conf
logoutput: /var/log/socks.log

internal: eth0 port = 1080
external: eth0

method: none
user.privileged: root
user.notprivileged: nobody

client pass {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  log: error connect disconnect
}

client block {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  log: connect error
}

pass {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  log: error connect disconnect
}

block {
  from: 0.0.0.0/0 to: 0.0.0.0/0
  log: connect error
}

Server Start/Stop

$ sudo service danted stop
$ sudo service danted start

Authentication

Simply change method: none to method: username then change. In order to create user credentials I recommend you add a user with no ssh/shell access via useradd - s /sbin/nologin Your-User-Name.

Chrome Proxy Plugin

Proxy SwitchyOmega

Reference

  1. Ubuntu 17.10 Socks5 Proxy Server Setup Guide
  2. How to set up danted (dante-server) SOCKS proxy on Linux/Debian with authentication
  3. How to list, add, delete, modify users

更新時間:

留言