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

    Do not route internet traffic trough OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 886 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.
    • O
      opensense
      last edited by

      Hi everybody,

      I've been busy with this issue for a few days now and I can't seem to figure it out. I'm running the latest version of pfsense and i'm using it with OpenVPN. The thing is, I want to use OpenVPN only to access a certain range on my local network (let's say 10.8.0.0 255.255.255.0). This works fine, but all my networking/routing is done by OpenVPN at this point when i'm connected.

      I don't want internet traffic to be routed trough OpenVPN when i'm connected. In this case blocking port 80/443 is not an option.

      Help is greatly appreciated!

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

        Uncheck "Redirect gateway" in the OpenVPN server setting and enter the subnet(s) you want to route over the vpn in the "Local network/s" box.

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