lozy / danted Goto Github PK
View Code? Open in Web Editor NEWFast script for installing & configing Danted--Socks5 Proxy Server.
Fast script for installing & configing Danted--Socks5 Proxy Server.
防火墙也关闭了,安装也正常。就是不能连接正常使用。telnet端口也正常。有人说是被墙了但是安装ssr可以正常使用。不知道什么原因。
debug log
+ service danted stop
+ rm /etc/danted -rf
+ VERSION=v1.3.2
+ DEFAULT_PORT=2016
+ DEFAULT_USER=danted
+ DEFAULT_PAWD=danted
+ MASTER_IP=ip.baidu.com
++ /sbin/ifconfig
++ grep 'inet addr'
++ grep -Ev 'inet addr:127.0.0|inet addr:192.168.0|inet addr:10.0.0'
++ sed -n 's/.*inet addr:\([^ ]*\) .*/\1/p'
+ SERVERIP=
+++ dirname install.sh
++ cd .
++ pwd
+ path=/root
++ grep CentOS /etc/issue
+ '[' -n '' ']'
++ grep -E 'Debian|Ubuntu' /etc/issue
+ '[' -n '' ']'
+ exit 0
[root@test ~]# service sockd deluser test
Clearing User For Dante SOCKS 5 daemon:
/etc/init.d/sockd: line 212: del_user: command not found
[root@test ~]#
Centos 7
Centos 6 x64
Debian 7,and Debian 8
all got same issue on vultr vps
root@host:/home/user# service sockd deluser testuser
Clearing User For Testuser SOCKS 5 daemon:
/etc/init.d/sockd: line 212: del_user: command not found
Deleting an user is not working
Receiving these errors
"Adding User For Dante SOCKS 5 daemon:
Error: User or password can't be blank
Synchronizing state of sockd.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable sockd
Failed to execute operation: Too many levels of symbolic links
Dante Server Install Failed!"
But has not asked me to input username and password. what have i missed?
I basically sent 10 requests, where half of them failed.
Checked the log, and this is what it said:
Apr 9 14:06:18 (1523275578.435215) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.211.2016 -> 565, 565 -> 54.38.153.211.49426 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:06:18 (1523275578.454857) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.211.2016 -> 54.38.153.211.49430 52.209.72.234.443
Apr 9 14:06:18 (1523275578.570533) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:06:18 (1523275578.591564) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.211.2016 -> 565, 565 -> 54.38.153.211.49430 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:06:18 (1523275578.610198) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.211.2016 -> 54.38.153.211.49432 52.209.72.234.443
Apr 9 14:06:18 (1523275578.719587) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:06:18 (1523275578.738714) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.211.2016 -> 565, 565 -> 54.38.153.211.49432 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:06:20 (1523275580.840656) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.211.2016 -> 0, 0 -> 54.38.153.211.49436 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 2s
Apr 9 14:06:57 (1523275617.050838) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:00 (1523275620.060585) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.212.2016 -> 0, 0 -> 54.38.153.212.60322 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 3s
Apr 9 14:07:00 (1523275620.070647) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:03 (1523275623.060561) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.212.2016 -> 0, 0 -> 54.38.153.212.60398 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 3s
Apr 9 14:07:03 (1523275623.070694) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.060626) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.212.2016 -> 0, 0 -> 54.38.153.212.60484 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 3s
Apr 9 14:07:06 (1523275626.070717) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.108658) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.212.2016 -> 54.38.153.212.60562 52.209.72.234.443
Apr 9 14:07:06 (1523275626.351711) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.372518) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.212.2016 -> 565, 565 -> 54.38.153.212.60562 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:07:06 (1523275626.388592) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.212.2016 -> 54.38.153.212.60570 52.209.72.234.443
Apr 9 14:07:06 (1523275626.498006) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.517380) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.212.2016 -> 565, 565 -> 54.38.153.212.60570 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:07:06 (1523275626.534287) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.212.2016 -> 54.38.153.212.60584 52.209.72.234.443
Apr 9 14:07:06 (1523275626.642230) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.661393) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.212.2016 -> 565, 565 -> 54.38.153.212.60584 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:07:06 (1523275626.696675) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.212.2016 -> 54.38.153.212.60590 52.209.72.234.443
Apr 9 14:07:06 (1523275626.814290) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:06 (1523275626.836070) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.212.2016 -> 565, 565 -> 54.38.153.212.60590 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:07:09 (1523275629.060504) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.212.2016 -> 0, 0 -> 54.38.153.212.60596 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 3s
Apr 9 14:07:09 (1523275629.070567) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:09 (1523275629.106488) sockd[840]: info: pass(1): tcp/connect [: pam%[email protected] 54.38.153.212.2016 -> 54.38.153.212.60660 52.209.72.234.443
Apr 9 14:07:09 (1523275629.215199) sockd[834]: warning: accept(2) failed: Resource temporarily unavailable (errno = 11)
Apr 9 14:07:09 (1523275629.234112) sockd[840]: info: pass(1): tcp/connect ]: 3235 -> pam%[email protected] 54.38.153.212.2016 -> 565, 565 -> 54.38.153.212.60660 52.209.72.234.443 -> 3235: local client closed. Session duration: 0s
Apr 9 14:07:12 (1523275632.060577) sockd[840]: info: pass(1): tcp/connect ]: 0 -> pam%[email protected] 54.38.153.212.2016 -> 0, 0 -> 54.38.153.212.60672 54.76.253.7.443 -> 0: remote peer error (No route to host). Session duration: 3s``````
If I put:
method: username
clientmethod: username
Cant start sockd.
CentOS 6 我试过这个 wget --no-check-certificate https://public.sockd.info/install_centos.sh -O install_centos.sh
bash install_centos.sh 不行啊 安装不成功
Just wanted to start out saying thank you very much for this script,
I am having a bit of an issue actually connecting to the sock5 from my workstation though.
I am running CentOS 7, and have generated this config.
/# Generate by sockd.info
/# Generate interface myexternal
internal: myexternal port = 2016
external: myexternal
socksmethod: username
clientmethod: none
user.privileged: root
user.notprivileged: sockd
logoutput: /var/log/sockd.log
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
client block {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
socksmethod: username
log: connect disconnect
}
block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
The server runs and status shows as running and good to go and all, however (using proxifier to connect) it is refusing to connect saying server refused connection.
+-----------------------------------------+
Dante Server [ Running ]
+-----------------------------------------+
Dante Version: Dante v1.4.2. Copyright (c) 1997 - 2014 Inferno Nettverk A/S, Norway
Socks5 Info:
149.56.251.88:2016
Socks5 User: rhino
+_________________________________________+
I ran iptables -L -n, and here are the results.
`
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
INPUT_direct all -- 0.0.0.0/0 0.0.0.0/0
INPUT_ZONES_SOURCE all -- 0.0.0.0/0 0.0.0.0/0
INPUT_ZONES all -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0 ctstate INVALID
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
FORWARD_direct all -- 0.0.0.0/0 0.0.0.0/0
FORWARD_IN_ZONES_SOURCE all -- 0.0.0.0/0 0.0.0.0/0
FORWARD_IN_ZONES all -- 0.0.0.0/0 0.0.0.0/0
FORWARD_OUT_ZONES_SOURCE all -- 0.0.0.0/0 0.0.0.0/0
FORWARD_OUT_ZONES all -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0 ctstate INVALID
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
OUTPUT_direct all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD_IN_ZONES (1 references)
target prot opt source destination
FWDI_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
FWDI_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
Chain FORWARD_IN_ZONES_SOURCE (1 references)
target prot opt source destination
Chain FORWARD_OUT_ZONES (1 references)
target prot opt source destination
FWDO_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
FWDO_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
Chain FORWARD_OUT_ZONES_SOURCE (1 references)
target prot opt source destination
Chain FORWARD_direct (1 references)
target prot opt source destination
Chain FWDI_public (2 references)
target prot opt source destination
FWDI_public_log all -- 0.0.0.0/0 0.0.0.0/0
FWDI_public_deny all -- 0.0.0.0/0 0.0.0.0/0
FWDI_public_allow all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
Chain FWDI_public_allow (1 references)
target prot opt source destination
Chain FWDI_public_deny (1 references)
target prot opt source destination
Chain FWDI_public_log (1 references)
target prot opt source destination
Chain FWDO_public (2 references)
target prot opt source destination
FWDO_public_log all -- 0.0.0.0/0 0.0.0.0/0
FWDO_public_deny all -- 0.0.0.0/0 0.0.0.0/0
FWDO_public_allow all -- 0.0.0.0/0 0.0.0.0/0
Chain FWDO_public_allow (1 references)
target prot opt source destination
Chain FWDO_public_deny (1 references)
target prot opt source destination
Chain FWDO_public_log (1 references)
target prot opt source destination
Chain INPUT_ZONES (1 references)
target prot opt source destination
IN_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
IN_public all -- 0.0.0.0/0 0.0.0.0/0 [goto]
Chain INPUT_ZONES_SOURCE (1 references)
target prot opt source destination
Chain INPUT_direct (1 references)
target prot opt source destination
Chain IN_public (2 references)
target prot opt source destination
IN_public_log all -- 0.0.0.0/0 0.0.0.0/0
IN_public_deny all -- 0.0.0.0/0 0.0.0.0/0
IN_public_allow all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
Chain IN_public_allow (1 references)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:2016 ctstate NEW
Chain IN_public_deny (1 references)
target prot opt source destination
Chain IN_public_log (1 references)
target prot opt source destination
Chain OUTPUT_direct (1 references)
target prot opt source destination
`
Any idea what might be goin on? Authentication Issue? Firewall?
2017-05-17 12:42:09 (21.9 MB/s) - “install_centos.sh” saved [9442/9442]
[root@server823 ~]# bash install_centos.sh
Current Options:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
install_centos.sh: line 258: gcc: command not found
Archive: libpam-pwdfile.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of libpam-pwdfile.zip or
libpam-pwdfile.zip.zip, and cannot find libpam-pwdfile.zip.ZIP, period.
install_centos.sh: line 267: cd: libpam-pwdfile-master: No such file or directory
[ERROR] pam_pwdfile.so not exist!
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
centos 6.X 64位
If I'm browsing through a public computer with SOCKS5, will the traffic between my public computer and the SOCKS5 server be encrypted?
Hello . Does not work on CentOS 7.5.
The installation went well, but unfortunately the connection is not done.
I turned off the firewall.
I will not get any error, and the connection will start in 10 seconds in the beginning of the service, but then the connection will be cut off.
where is the problem from ?
CentOS7 脚本执行无反应.
When installing with more than 1 ip I am getting
Dante Server Install Failed!
This only happens when installing with more than one ip.
--ip="a.a.a.a;b.b.b.b" --port=xxxx --user=xxxx --passwd=xxxx
The above gives the Dante Server Failed error, if I do it like this without the quotations in the ip option:
--ip=a.a.a.a;b.b.b.b --port=xxxx --user=xxxx --passwd=xxxx
I get the error
Error: User or password can't be blank
Using CentOS 6.9
Thanks
tried both
all throw same error
line 281 ./configure has no permission
so i add bash infront.
then i get error
checking whether the C compiler works... configure: error: cannot run C compiled programs.
they are all newly installed centos. im able to get this to work in ubuntu, but never in centos
help
Dear Lozy,
請問是否能更新到1.4.2版本?還是舊版的比較穩定呢?
感謝您!
Without adding user it is not working. Need to fix this.
I tried without user but not it's working.
Hello Lozy
Your script is wonderful, thanks for share. but i have trouble with a router with lede, i installed socksify and i try put the "socks.conf" config file into /etc/ but don't works.
this is my script :
errorlog: socks.errlog
logoutput: socks.log
debug: 2
resolveprotocol: tcp
route {
from: 0.0.0.0/0 to: 0.0.0.0/0 via: MyProxyServer port = MyPort
proxyprotocol: socks_v5
method: pam
protocol: tcp
}
ENVIRONMENT
SOCKS_USERNAME: MyUser
SOCKS_PASSWORD: MyPass
I don't know how to use PAM metod, I try with proxifier at windows and works fine, my problem is with Lede.
Thanks for Read.
Sorry for my English, My language is Spanish I'm From Perú.
Hi,
I installed dante using your script, every thing went well, the port is open and is shall work fine,
but I was not able to connect my clients, so I used debug:1 in the .conf file and I see for each request there is some log lines like this:
May 11 13:28:09 (1526029089.605844) sockd[478]: debug: recv_negotiate(): recvmsg() from mother returned -1 after having received 1 packets, errno = 11 (Resource temporarily unavailable)
May 11 13:28:17 (1526029097.613903) sockd[478]: info: block(1): tcp/accept ]: xxx.zzz.xx.zzz.53874 SERVER-IP.7778: negotiation timed out
also I have plenty of resources available (around 1GB free ram), I read somewhere that errno 11 could be result of low memory
somewhere else I read that os being not updated might be the reason, I also updated the server with yum update
and it is updated now
I have also changed the .conf file to make sure that auth is not the problem
method: none
clientmethod: none
user.privileged: root
user.unprivileged: nobody
logoutput: /var/log/sockd.log
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
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
command: bind connect udpassociate bindreply udpreply
method: none
log: connect disconnect error
}
block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
OS: CentOs 6.9
can you tell me what is my problem
Getting this: User not known to the underlying authentication module
using "/etc/init.d/sockd status" lists the user fine, been reinstalling multiple times and reinstalling even the server.. Debian 8, vultr.
Restarting Dante SOCKS daemon:
Danted Server [ PID.LOST;Unable ]
cat: /var/run/sockd.pid: No such file or directory
Danted Server [ Stop Done ]
Danted Server [ Start Faild ]
Dante Server Install Failed!
Same as here https://stackoverflow.com/questions/49855516/telegram-calls-via-dante-socks5-proxy-server-not-working but with @Lozy install.sh script for 1.3.2
Here is some log with udp/udpassociate action
Apr 19 16:17:33 (1524143853.147297) sockd[22468]: info: pass(1): tcp/connect ]: 258 -> pam%[email protected] 192.168.1.30.10800 -> 443, 443 -> 192.168.1.30.55570 149.154.167.51.5222 -> 258: local client closed. Session duration: 11s
Apr 19 16:17:36 (1524143856.086742) sockd[22464]: info: pass(1): udp/udpassociate [: pam%[email protected] 192.168.1.30.58761 -> 192.168.1.30.42546 0.0.0.0.0
Apr 19 16:17:38 (1524143858.388098) sockd[22468]: info: pass(1): tcp/connect ]: 687 -> pam%[email protected] 192.168.1.30.10800 -> 1128, 1128 -> 192.168.1.30.55569 149.154.167.51.80 -> 687: local client closed. Session duration: 16s
Apr 19 16:18:05 (1524143885.074179) sockd[22468]: info: pass(1): udp/udpassociate ]: 0/0 -> pam%[email protected] 192.168.1.30.58761 -> 0/0, 0/0 -> 192.168.1.30.42546 0.0.0.0.0 -> 0/0: local client closed. Session duration: 29s`
用的软件不能用带有登录名和密码的,请教下该如何使用没有登录名和密码的?
Aug 5 00:36:26 instance-1 systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Aug 5 00:36:26 instance-1 danted[3160]: Aug 5 00:36:26 (1533429386.294687) danted[3160]: warning: checkconfig(): no socks authentication methods enabled. This means all socks requests will be blocked after negotiation. Perhaps this is not intended?
Aug 5 00:36:26 instance-1 danted[3160]: Aug 5 00:36:26 (1533429386.298646) danted[3160]: error: checkconfig(): no internal address given for server to listen for clients on
Aug 5 00:36:26 instance-1 danted[3160]: Aug 5 00:36:26 (1533429386.299107) danted[3160]: alert: mother[1/1]: shutting down
Aug 5 00:36:26 instance-1 systemd[1]: danted.service: Control process exited, code=exited status=1
Aug 5 00:36:26 instance-1 systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (danted).
Aug 5 00:36:26 instance-1 systemd[1]: danted.service: Unit entered failed state.
Aug 5 00:36:26 instance-1 systemd[1]: danted.service: Failed with result 'exit-code'.
Aug 5 00:36:26 instance-1 systemd[1]: Reloading.
Aug 5 00:36:26 instance-1 systemd[1]: apt-daily-upgrade.timer: Adding 9min 50.057080s random time.
Aug 5 00:36:57 instance-1 google-accounts: INFO Removing user ******
Aug 5 00:39:48 instance-1 systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Aug 5 00:39:48 instance-1 danted[3248]: Aug 5 00:39:48 (1533429588.834814) danted[3248]: error: /etc/danted.conf: problem on line 1 near token "n": syntax error. Please see the Dante manual for more information
Aug 5 00:39:48 instance-1 danted[3248]: Aug 5 00:39:48 (1533429588.837124) danted[3248]: alert: mother[1/1]: shutting down
Aug 5 00:39:48 instance-1 systemd[1]: danted.service: Control process exited, code=exited status=1
Aug 5 00:39:48 instance-1 systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (dante
d).
Aug 5 00:39:48 instance-1 systemd[1]: danted.service: Unit entered failed state.
Aug 5 00:39:48 instance-1 systemd[1]: danted.service: Failed with result 'exit-code'.
Aug 5 00:40:11 instance-1 systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Aug 5 00:40:11 instance-1 danted[3285]: Aug 5 00:40:11 (1533429611.873731) danted[3285]: e
rror: /etc/danted.conf: problem on line 1 near token "n": syntax error. Please see the Dant
e manual for more information
Aug 5 00:40:11 instance-1 danted[3285]: Aug 5 00:40:11 (1533429611.874503) danted[3285]: a
lert: mother[1/1]: shutting down
Aug 5 00:40:11 instance-1 systemd[1]: danted.service: Control process exited, code=exited s
tatus=1
Aug 5 00:40:11 instance-1 systemd[1]: Failed to start SOCKS (v4 and v5) proxy daemon (dante
d).
Aug 5 00:40:11 instance-1 systemd[1]: danted.service: Unit entered failed state.
Aug 5 00:40:11 instance-1 systemd[1]: danted.service: Failed with result 'exit-code'.
Aug 5 00:52:33 instance-1 systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Aug 5 00:52:33 instance-1 danted[3426]: Aug 5 00:52:33 (1533430353.745696) danted[3426]: e
rror: /etc/danted.conf: problem on line 1 near token "n": syntax error. Please see the Dant
e manual for more information
Aug 5 00:52:33 instance-1 danted[3426]: Aug 5 00:52:33 (1533430353.747895) danted[3426]: a
lert: mother[1/1]: shutting down
Dante Server Install Failed!
Hi,
first of all thanks for your work.
It seems install.sh does not detect raspbian. I also have run install_debian.sh on my raspberry pi (with raspbian) and systemd unit does not start.
Using
/etc/init.d/sockd start
also does not work. The content of /var/log/sockd.log (the first lines are the systemd start and the last ones are the init.d start
Mar 15 13:59:49 (1489582789.648221) sockd[14910]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 13:59:49 (1489582789.648533) sockd[14910]: alert: sockdexit(): terminating
Mar 15 13:59:49 (1489582789.648649) sockd[14910]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)
Mar 15 13:59:50 (1489582790.077773) sockd[14935]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 13:59:50 (1489582790.078060) sockd[14935]: alert: sockdexit(): terminating
Mar 15 13:59:50 (1489582790.078184) sockd[14935]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)
Mar 15 13:59:50 (1489582790.327828) sockd[14938]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 13:59:50 (1489582790.328112) sockd[14938]: alert: sockdexit(): terminating
Mar 15 13:59:50 (1489582790.328226) sockd[14938]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)
Mar 15 13:59:50 (1489582790.587939) sockd[14941]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 13:59:50 (1489582790.588225) sockd[14941]: alert: sockdexit(): terminating
Mar 15 13:59:50 (1489582790.588337) sockd[14941]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)
Mar 15 13:59:50 (1489582790.837830) sockd[14944]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 13:59:50 (1489582790.838116) sockd[14944]: alert: sockdexit(): terminating
Mar 15 13:59:50 (1489582790.838239) sockd[14944]: warning: sockdexit(): truncate(/var/run/sockd.pid): No such file or directory (errno = 2)
Mar 15 14:10:07 (1489583407.269093) sockd[15974]: error: checkconfig(): no internal address given for server to listen for clients on
Mar 15 14:10:07 (1489583407.269397) sockd[15974]: alert: sockdexit(): terminating
would be possible to add support for raspbian?
Cheers
Hi,
when I query https://steamcommunity.com , then use tcpdump to catch packages I found out that all packages' length field is 0. ( I can see packages are exchanged between steamcommunity.com and my socks server. ) But http://steamcommunity.com works fine. Below is my conf.
internal: 47.88.33.168 port = 2020
external: 47.88.33.168
method: pam none
clientmethod: none
user.privileged: root
user.notprivileged: sockd
logoutput: /var/log/sockd.log
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
#method: pam none
log: connect disconnect error
}
How can I solve this issue? thanks in advance.
myos:ubuntu 14.04 64位
root@ubuntu:~# service sockd restart
Restarting Dante SOCKS 5 daemon:
Danted Server [ PID.LOST;Unable ]
Danted Server [ Running ]
cat log
Oct 22 22:09:55 (1508681395.999751) sockd[26102]: alert: sockdexit(): terminating
Oct 22 22:10:35 (1508681435.363699) sockd[26176]: info: dante/server[1] v1.3.2 running
Oct 22 22:11:04 (1508681464.872901) sockd[26176]: info: sigterm(): exiting on signal 15
Oct 22 22:11:04 (1508681464.872950) sockd[26176]: alert: sockdexit(): terminating
Oct 22 22:13:26 (1508681606.337942) sockd[26478]: info: dante/server[1] v1.3.2 running
Oct 22 22:14:38 (1508681678.258757) sockd[26478]: info: sigterm(): exiting on signal 15
Oct 22 22:14:38 (1508681678.258805) sockd[26478]: alert: sockdexit(): terminating
Oct 22 22:17:02 (1508681822.855205) sockd[26858]: info: dante/server[1] v1.3.2 running
my install method:
wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh
bash install.sh --port=xx --user=xx --passwd=xx
Restarting Dante SOCKS 5 daemon:
Danted Server [ PID.LOST;Unable ]
Danted Server [ Start Failed ]
Dante Server Install Failed!
then i edit /etc/danted/sockd.conf
internal: myip port = xxx
external: eth0
then
service sockd start
Restarting Dante SOCKS 5 daemon:
Danted Server [ PID.LOST;Unable ]
Danted Server [ Running ]
in fact socks5 work ok just start note:Danted Server [ PID.LOST;Unable ] what main?
After following your instructions and steps to install it it seems to be fine and work well but i cannot connect to the proxy i make, I've also tried adding a different user and still the same all ports are open etc so I have no idea what could cause this and I am quite in need of being able to setup a socks5.
My OS CentOS 7 64bit
after installation i get Danted Server [ PID.LOST;Unable ]
if i try to restart i get:
[root@vps433051 ~]# /etc/init.d/sockd restart
Restarting Dante SOCKS 5 daemon:
Danted Server [ PID.LOST;Unable ]
Danted Server [ Start Failed ]
---> Package pam.x86_64 0:0.99.6.2-14.el5_11 set to be updated
http://mirror.scalabledns.com/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.xmission.com/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.arsc.edu/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.metrocast.net/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.linuxfix.com/centos/5/updates/x86_64/repodata/filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
第一遍安装失败,之后安装全部都失败,如何卸载呢?
我的linux上有安装其他程序,无法重做系统
I installed danted script on Ubuntu 16.04 successfully.
In proxifer :
[01:59] Testing Started.
Proxy Server
Address: 95.216.149.**:2016
Protocol: SOCKS 5
Authentication: YES
[01:59] Starting: Test 1: Connection to the Proxy Server
[01:59] IP Address: 95.216.149.**
[01:59] Connection established
[01:59] Test passed.
[01:59] Starting: Test 2: Connection through the Proxy Server
[02:30] Error : connection to the proxy server was closed unexpectedly.
[02:30] Test failed.
[02:30] Testing Finished.
How can i fixed it?
this is my sockd.conf
internal: 95.216.149.** port = 2016
external: 95.216.149.**
method: pam none
clientmethod: none
user.privileged: root
user.notprivileged: sockd
logoutput: /var/log/sockd.log
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
client block {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
method: pam
log: connect disconnect
}
block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
Hello!
CentOS 7
My config file:
# Generate by sockd.info
# Generate interface 80.211.*.*
internal: 80.211.*.* port = 2016
external: 80.211.*.*
method: pam none
clientmethod: none
user.privileged: root
user.notprivileged: sockd
logoutput: /var/log/sockd.log
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
client block {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
method: none
log: connect disconnect
}
In Firefox: The proxy server is refusing connections
启动后 多用户使用 CPU会跑满 拖挂机器 8核心 E5
bash: line 305: service: command not found
Dante Server Install Failed!
bash: line 331: /etc/init.d/sockd: No such file or directory
please help me
dante-1.3.2/example/sockd.conf
dante-1.3.2/example/sockd-basic.conf
dante-1.3.2/example/socks-simple-withoutnameserver.conf
dante-1.3.2/example/sockd-chaining.conf
dante-1.3.2/doc/Makefile.am
dante-1.3.2/doc/Makefile.in
dante-1.3.2/doc/sockd.8
dante-1.3.2/doc/sockd.conf.5
dante-1.3.2/doc/socks.conf.5
dante-1.3.2/doc/socksify.1
dante-1.3.2/doc/rfc1928.txt
dante-1.3.2/doc/rfc1929.txt
dante-1.3.2/doc/rfc1961.txt
dante-1.3.2/doc/SOCKS4.protocol
dante-1.3.2/doc/SOCKS4A.protocol
dante-1.3.2/doc/README.socksify
dante-1.3.2/doc/README.survey
dante-1.3.2/doc/README.usage
dante-1.3.2/bin/Makefile.am
dante-1.3.2/bin/Makefile.in
dante-1.3.2/bin/socksify.in
dante-1.3.2/SPECS/Makefile.am
dante-1.3.2/SPECS/Makefile.in
dante-1.3.2/SPECS/dante.spec.in
dante-1.3.2/SPECS/dante.spec
dante-1.3.2/capi/socks.h
dante-1.3.2/capi/socks_glibc.h
dante-1.3.2/capi/Makefile.am
dante-1.3.2/capi/Makefile.in
dante-1.3.2/capi/socks.h.in
dante-1.3.2/contrib/README
dante-1.3.2/contrib/Makefile.am
dante-1.3.2/contrib/Makefile.in
dante-1.3.2/contrib/sockd-stat.awk
dante-1.3.2/contrib/StartupItems.Dante
dante-1.3.2/contrib/StartupParameters.plist
dante-1.3.2/dlib64/Makefile.am
dante-1.3.2/dlib64/Makefile.in
bash: line 274: cd: too many arguments
make: *** No targets specified and no makefile found. Stop.
Synchronizing state of sockd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable sockd
Dante Server Install Failed!
Ubuntu 16.04,Azure,安装一切正常,最后一步启动守护进程报错。查看日志之后,发现配置文件中未添加参数internal和external,运行安装脚本时已指定端口,但是好像并没有什么用。
多IP的情况下出口都是主ip
site is failing
do u have a backup for all the required files?
在阿里云上架设成功,用tg测试也没问题。就是在玩绝地求生的时候卡在匹配界面,进不去。udp测试也没啥问题啊!难道还要设置哪里才行?
已经解决 谢谢!
Executing /usr/sbin/update-rc.d sockd enable
Dante Server Install Failed!
Usage: /etc/init.d/sockd {start|stop|restart|reload|status|state|adduser|deluser|tail|conf|update}
/etc/init.d/sockd tail
==> /var/log/sockd.log <==
nothing in log.. no real info to say why it failed.. This is just crap as its impossible to diagnose without any info.
Hi, I have the following issue.
If I install this script directly with a VPS server that only has public IP works wonderfully, the password command does not work, but I am not interested.
My problem is in CenturyLink, which provide VPS servers with private IP addresses, and on the private network they assign the public IP.
Example:
Private: 10.100.10.xxx
Audience: 65.151.xxx.xxx
Try both ways and none works for me, is there any way to do this script using the network interface, "eth: 0; ens160"?
Or if there is any solution for me, please say.
Hi!
For Ubuntu 18.04 Dante Server Install Failed..
Hello,
When I was creating a user which can connect to my proxy, I noticed that its password in /etc/danted/sockd.passwd
was hashed using CRYPT, which means that only 8 first characters are used. I patched sockd
script to use bcrypt but the service refused to start. Consequently, I assumed this is not supported yet.
Is there a way to add bcrypt support?
CentOS 6 没法用了
bash install.sh后没反映
The whole job is wonderful, thank you for your work! It helps a lot.
系统:Debian 9
虚拟化架构:kvm
安装到下面这个地方,提示失败
dante-1.3.2/doc/socksify.1
dante-1.3.2/doc/rfc1928.txt
dante-1.3.2/doc/rfc1929.txt
dante-1.3.2/doc/rfc1961.txt
Dante Server Install Failed!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.