Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Site to site OpenVPN - restrict access to server LAN resources

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.2k 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.
    • C
      costasppc
      last edited by

      Sorry if this has been mentioned before, if so please point to the relevant thread. I need to create a site to site OpenVPN but restrict access restrict to server LAN resources. Specifically, I need to allow access from specific machines on the "client" side to specific machines to the "server" side.

      Best regards

      Kostas

      1 Reply Last reply
      Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Connections coming IN to an OpenVPN endpoint are firewalled using rules on the OpenVPN interface.

        If you want the remote site to only have access to certain hosts:ports, create firewall aliases/pass rules with those hosts:ports as the destination.

        In this example, 172.29.64.0/24 is my local OpenVPN server that only I can connect into, so it's far more permissive.  Everything else is from work site-to-site.  The local_vpn_hosts alias includes local IPs for a copier/printer, IP phone, etc, that the work VPN needs to initiate connections to.

        Note that my connections to the remote site are governed by rules on the remote site's OpenVPN interface.

        ![Screen Shot 2014-09-06 at 10.37.27 AM.png](/public/imported_attachments/1/Screen Shot 2014-09-06 at 10.37.27 AM.png)
        ![Screen Shot 2014-09-06 at 10.37.27 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2014-09-06 at 10.37.27 AM.png_thumb)

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy