全文转载自小YHome
简介
一键安装
wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh
bash install.sh --port=端口 --user=自己设置用户名 --passwd=设置密码
使用
https://t.me/socks?server=你的日本私人VPS IP地址&port=端口&user=用户名&pass=密码
Ubuntu安装DANTE介绍
cd /opt/ mkdir dante-server
wget https://www.inet.no/dante/files/dante-1.4.2.tar.gz tar -xvf dante-1.4.2.tar.gz cd dante-1.4.2
apt-get install libwrap0 libwrap0-dev apt-get install gcc make
mkdir /home/dante ./configure --prefix=/home/dante make make install
设置Dante
vi /home/dante/danted.conf
logoutput: /var/log/socks.log internal: IP地址 port = 1080 external: IP地址 external.rotation: same-same libwrap.hosts_access: yes user.notprivileged: nobody clientmethod: none method: none client pass { from: 0.0.0.0/0 to: 0.0.0.0/0 log: error connect disconnect } pass { from: 174.135.39.206/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 }
运行Dante
/home/dante/sbin/sockd -f /home/dante/danted.conf -D