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

    Disable Internet to Lan on Server side and only route Lan traffice via OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 250 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.
    • D
      duke.brown
      last edited by

      Title says it all. I only want pfSense to route the Lan traffic through the VPN tunnel. I have another router that provides internet.

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Assign an interface to the OpenVPN instance in Interfaces > Assign.
        Then edit all you LAN firewall rules which allow upstream traffic, open the advanced options, go down to Gateway and select the gateway of the corresponding OpenVPN instance.

        Consider that rules with stated gateway only allow traffic passing that gateway. So if you also need access to other destinations like DNS on pfSense itself you have to add additional rules to permit that and put them to the top of the rule set.

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