Всем доброго дня! установил из репов dante. Никак не получается подключится из телеграм.
Dante v1.4.1. Copyright (c) 1997 - 2014 Inferno Nettverk A/S, Norway
Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
root@silicon:/home/simon# ps aux |grep danted
nobody 1732 0.0 0.0 48552 2104 ? Ss 10:41 0:05 /usr/sbin/danted -D
[cut]nobody 1733 0.0 0.0 48552 316 ? S 10:41 0:00 danted: monitor-ch
nobody 1735 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1736 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1737 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1738 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1739 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1740 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1741 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1742 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1743 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1744 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1745 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1746 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1747 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1748 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1749 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1750 0.0 0.0 48552 324 ? S 10:41 0:00 danted: request-ch
nobody 1751 0.0 0.0 48552 1848 ? S 10:41 0:00 danted: io-child:
root 3876 0.0 0.0 68264 4468 ? S 14:04 0:00 danted: negotiate-
nobody 3913 0.0 0.0 48552 1920 ? S 14:07 0:00 danted: negotiate-
root 3917 0.0 0.0 12780 928 pts/1 S+ 14:07 0:00 grep danted[/cut]
/etc/danted.conf
logoutput: /var/log/socks.log
errorlog: var/log/socks-err.log
internal: enp4s0f0 port = 4949
external: enp4s0f0
debug: 1
socksmethod: pam
clientmethod: none
user.privileged: root
user.unprivileged: nobody
user.libwrap: nobody
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
method: none
}
useradd -s /usr/sbin/nologin socks
-------------------------------------------------------------------------------------------------------------------------------
ls -l /etc/pam.d/sockd
-rw-r--r-- 1 root root 166 мар 31 10:40 /etc/pam.d/sockd
-------------------------------------------------------------------------------------------------------------------------------
cat /etc/pam.d/sockd
#%PAM-1.0
auth required /lib/x86_64-linux-gnu/security/pam_pwdfile.so pwdfile=/opt/dante/sockd.passwd
account required /lib/x86_64-linux-gnu/security/pam_permit.so
htpasswd -c -b -m /opt/dante/sockd.passwd socks passcode
-------------------------------------------------------------------------------------------------------------------------------
ls -l /opt/dante/sockd.passwd
-rw-r--r-- 1 root root 44 мар 31 10:38 /opt/dante/sockd.passwd
-------------------------------------------------------------------------------------------------------------------------------
cat /opt/dante/sockd.passwd
socks:$apr1$m/eveFgf$Zu3xIM7HzRpCxfgIVxdMy1
-------------------------------------------------------------------------------------------------------------------------------