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

    Openvpn server and clients with restrictions

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.6k 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.
    • S
      sp00ky
      last edited by

      Hi,

      Me and some friends want to play some old pc games.

      If I set up a openvpn-server and allow my friends to connect to it using a openvpn client, can I force them to use my pfsense as default gateway and block them from using my internet?

      If its possible, how do i configure it in the firewall? And how do I force them to use my pfsense as default gateway? fixed

      edit: is it possible so they can access each other aswell? fixed

      Best regards.

      ps. the reason i dont want them to use my internet is that i dont trust some of them i dont want them to download illegal material using my externa IP.

      1 Reply Last reply Reply Quote 0
      • M
        Metu69salemi
        last edited by

        interfacerules on openvpn might be the answer

        You'll need to interface openvpn server (via assign)
        allow from openvpn subnet to openvpn subnet
        allow from openvpn subnet to your lan subnet <– if you need to contact them also
        deny from openvpn subnet to any

        1 Reply Last reply Reply Quote 0
        • S
          sp00ky
          last edited by

          Thx it worked :)

          1 Reply Last reply Reply Quote 0
          • M
            Metu69salemi
            last edited by

            Glad that it helped

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