带有validation的Danted袜子代理

我一直试图build立在Linux上的SOCKS代理与丹特。 我有代理工作完全没有身份validation,但是当我尝试添加身份validation与method: usernamemethod: pam我无法login任何用户名或密码,我设置。

当使用method: pam这是我使用的configuration

 logoutput: stderr /var/log/danted.log /#Interfaces for listening on internal: eth0 port=1080 #AP external interface internal: eth0 port=53 external: eth0 #interface on AODV network /#Auth Method method: pam user.privileged: root user.notprivileged: nobody user.libwrap: nobody client pass { from: 0.0.0.0/0 to: 0.0.0.0/0 log: error } /#Allow any connection pass { from: 0.0.0.0/0 to: 0.0.0.0/0 command: connect udpassociate protocol: udp tcp log: error method: pam pamservicename: sockd } 

但是,当我运行danted -d我一个错误的用户名和密码的身份validation错误。 我的Pamconfiguration是

 auth required pam_pwdfile.so pwdfile /etc/danted/sockd.passwd account required pam_permit.so 

和用户名和密码是用htpasswd -d强制crypt()创build的。

我也尝试了method: username ,我得到了与system password userauthentication failed相同的问题。 我正在testing这些与代理代理检查器,他们总是返回错误的用户名或密码。

我目前正在运行它没有任何身份validation,所以解决这个问题是相当重要的。

我创build了一个名为“test”的新用户,密码为“password”,这是我得到的错误

 Jul 12 14:45:07 ip-172-31-26-147 danted: pam_pwdfile(sockd:auth): setting fail delay Jul 12 14:45:07 ip-172-31-26-147 danted: pam_pwdfile(sockd:auth): username is estt Jul 12 14:45:07 ip-172-31-26-147 danted: pam_pwdfile(sockd:auth): user not found in password database 

我最终解决了这个问题,删除了我通过apt安装的dante版本,并用一个从dante网站下载并从源代码编译的版本replace。 在Ubuntu的版本库中必须有一个版本的bug。