Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

So I've been using danted socks proxy the past three weeks and it works great however instead of going in and changing which IPs to allow I want to add authentication to it so only those with the right credentials can use my proxy. I tried it using the "username" method but I have no idea how to authenticate on the client side.

My config looks like this:

logoutput: stderr
logoutput: /var/log/danted/danted.log

internal: venet0:0 port = 4123
external: venet0:0

method: username #rfc931
clientmethod: none
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 # connect disconnect
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
log: error # connect disconnect
method: username
}

and in my error log i get

Aug 31 23:22:27 (1346448147) danted[27813]: pass(1): tcp/accept ]: 2.236.77.162.51094 -> 202.231.228.26.4123: client offered no acceptable authenticationmethod

so basically my problem is that I don't know how to authenticate on the client and i don't get any popup boxes etc where I can put in my credentials

share|improve this question

1 Answer 1

I tried it using the "username" method but I have no idea how to authenticate on the client side.

so basically my problem is that I don't know how to authenticate on the client and i don't get any popup boxes etc where I can put in my credentials

According to the man sockd.conf:

clientmethod
    A  list of acceptable authentication methods for client-rules, 
    in order of preference.

The clientmethod authentication methods work independently of the configuration of the client. No changes need to be made to the client side.

Either remove the clientmethod line or change the method: username #rfc931 line to method: username none #rfc931 to see if it works.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.