Score:0

Dante auth based on network

in flag

I want to configure a dante (danted) server to allow no auth on localhost (for ssh tunnel) and to ask for username/password on every other connection. This is what I have as a config file but it's accepting no authenticated connections from the internet. Any ideas?

# /etc/danted.conf

#logoutput: syslog
debug: 0
logoutput: /log/danted.log
user.privileged: root
user.unprivileged: socks

# The listening network interface or address.
internal: 0.0.0.0 port=1080

# The proxying network interface or address.
external: 192.168.1.11

# socks-rules determine what is proxied through the external interface.
# The default of "none" permits anonymous access.
socksmethod: username none

# client-rules determine who can connect to the internal interface.
# The default of "none" permits anonymous access.
clientmethod: rfc931 none

#method: none

client pass {
    from: 127.0.0.1/0 to: 127.0.0.1/0
    log: connect disconnect error
    clientmethod: none
}

socks pass {
        from: 127.0.0.1/0  to: 127.0.0.1/0
        log: connect disconnect error
        socksmethod: none
}

client block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect disconnect error
        clientmethod:none
}

client pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect disconnect error
        clientmethod: rfc931
}

socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect disconnect error
        socksmethod: none
}


socks pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect disconnect error
        socksmethod: username
user:banana
}
Score:0
br flag

The problem is in your Dante configuration file (sockd.conf).

You are using a zero-bits netmask where you probably mean to specify a full netmask. E.g. this address statement, from your above configuration: "from: 127.0.0.1/0". The zero after the "/", "/0", makes it the equivalent of "0.0.0.0/0", so it will match everything. Probably you meant "/32".

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.