1

I have setup Dante proxy server, and it works OK. Authentication method is been set to use local defined users.

Here is the sample of the configuration file.

 user.privileged: root
 user.unprivileged: nobody
 internal: 1.2.3.4 port= 1080
 external: 10.1.2.1
 socksmethod: username
 clientmethod: none

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

socks pass {
    from: 0.0.0.0/0 to: 0.0.0.0/0
    log: connect disconnect error
}

what I'm looking is to limit each user with two concurrent logins and no more than that.

Zareh Kasparian
  • 517
  • 3
  • 17

1 Answers1

0

Late response but people searching this in the future:

Following the dante docs you can use

session.state.max

to limit a session per ip. In addition, there is

session.max

that limits the total number of concurrent sessions that exist concurently.

https://www.inet.no/dante/doc/latest/config/session.html

madmanali93
  • 126
  • 1
  • hi. but by this you are not limiting the user itself. you just limit the ip address of the user. incase if you have more than one user at a same place, then all will be limited. – Zareh Kasparian Sep 13 '19 at 08:48
  • **session.state.key** you should read the link it has all the information you need. – madmanali93 Sep 14 '19 at 12:26