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

    Limiting OpenVPN access

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 721 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.
    • H
      Heli0s
      last edited by

      When someone connects to my OpenVPN server, they're basically in my network. Is there a way for me to limit the ports and IPs that the clients can access on my network? Basically, I want them to be able to access a few select ports on a specific IP and the internet (through the WAN).

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Put rules on the irewall->Rules OpenVPN tab to allow only what you want, and the rest is blocked.
        If you want to give general internet access through the OpenVPN, then it might be easiest to make a rule list like:
        a) Allow to destination IP/ports that you want to open on your LAN.
        b) Block to destination LANnet (block the rest of the LAN)
        c) Allow all - let anything else in on the OpenVPN (internet in general)

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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