Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    The same account can connect to pfsense OpenVPN simultaneously. How can I change this?

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 470 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      amrogers3
      last edited by amrogers3

      I have OpenVPN set up on pfsense. I am connecting to the VPN using viscosity. I am not sure why I should be able to log into the VPN using the same account simultaneously but I can.

      What happens when I log into the VPN from separate computers but using the same account:
      the connection disconnects for on one computer and attempts to reconnect. The connection is established but then disconnects for the other computer. This cycles back and forth for each computer connected to the VPN. The connection is dropped and re-established

      I can't find out where I can make these changes to prevent being able to log in using the same user.

      1 Reply Last reply Reply Quote 0
      • N
        notec
        last edited by

        Hi,

        there is an option in the configuration of your OpenVPN Server:

        VPN / OpenVPN / Servers

        Duplicate Connection: Check!
        Allow multiple concurrent connections from the same user When set, the same user may connect multiple times. When unset, a new connection from a user will disconnect the previous session.

        Users are identified by their username or certificate properties, depending on the VPN configuration. This practice is discouraged security reasons, but may be necessary in some environments.

        A 1 Reply Last reply Reply Quote 1
        • JonathanLeeJ
          JonathanLee
          last edited by

          You can also create different usernames to login with under user administration in pfSense

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • A
            amrogers3 @notec
            last edited by

            Hi,

            there is an option in the configuration of your OpenVPN Server:

            VPN / OpenVPN / Servers

            Duplicate Connection: Check!

            Exactly what I was looking for, thank you very much! and happy 4th tomorrow!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.