一、安装dante-server
apt-get install dante-server
二、修改配置文件:
cp /etc/danted.conf /etc/danted.conf.bak
修改配置文件:
vim /etc/danted.conf
logoutput: /var/log/dante/dante.log internal: 0.0.0.0 port = 10800 external: eth0 method: username none user.privileged: proxy user.notprivileged: nobody user.libwrap: nobody client pass { from: 0.0.0.0/0 to: 0.0.0.0/0 log: connect disconnect error } 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 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 protocol: tcp udp } block { from: 0.0.0.0/0 to: 0.0.0.0/0 log: connect error }
三、创建日志文件目录
mkdir /var/log/dante
四、启动Dante
service danted start
五、检测是否启动成功
netstat -anp | grep 10800