Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Disable Simultaneous connection per user (OpenVPN)
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Disable Simultaneous connection per user (OpenVPN)

KosovoKosovo Member

For example:

User1 - 1 simultaneous connection
User2 - 1 simultaneous connection

etc.

How can I do that? (OpenVPN)

Comments

  • KosovoKosovo Member

    Adding: I want to disable the account sharing.

    Thank you in advance.

  • FearHunterFearHunter Member
    edited May 2016

    By default the same openvpn config cannot be used simultaneously. Openvpn dropping the last connection.

  • KokinKokin Member

    so easy,you can change openvpn config (/etc/openvpn/server.conf) adding : duplicate-cn 1

    Thanked by 1Kosovo
  • KosovoKosovo Member

    @Kokin Thanks a lot.

  • KosovoKosovo Member

    @FearHunter Does that mean you want as the default?

  • FearHunterFearHunter Member
    edited May 2016

    @Kokin said:
    so easy,you can change openvpn config (/etc/openvpn/server.conf) adding : duplicate-cn 1

    This would enable multiple connections with one certificate. But OP dont want that.

    @Kosovo said:
    @FearHunter Does that mean you want as the default?

    It means that you dont need to do anything because openvpn already only allow one connection per certificate.

  • KokinKokin Member

    @FearHunter

    maybe, OP Just want to be like this
    use with one certificate Multiple users connections ,
    But the username and password is not the same,
    and then ,
    The same user and password can not be connected at the same time

  • msg7086msg7086 Member

    @Kokin said:
    The same user and password can not be connected at the same time

    How can you use user and password on OpenVPN?

  • KokinKokin Member

    @msg7086 said:

    @Kokin said:
    The same user and password can not be connected at the same time

    How can you use user and password on OpenVPN?

    change openvpn config file , adding : auth-user-pass-verify ( auth scripts path) via-env ,for more info , you can go to see offical config doc

  • mik997mik997 Member

    default behaviour for OpenVPN is to disconnect a client instance upon connection of a new client having the same certificate common name so as long as you issue a new certificate for each user you're all set

Sign In or Register to comment.