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

    How to use OpenVPN for only some traffic e.g specified by PORT or IP?

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 900 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.
    • T
      tmacka88
      last edited by

      Hi,

      I have successfully setup my OpenVPN (using Private Internet Access VPN) following this tute http://www.bodenzord.com/archives/324

      I am happy with it however, I find my speed and ping has been reduced which is expected, so I wish to use OpenVPN on selected IP's &/or Ports on my LAN, leaving the rest of my devices on my LAN to just pass through my WAN interface.

      Can someone please explain how I can do this. I am very new to pfSense (mad noob ;)).

      Any help would be greatly appreciated.

      I searched the forum but could only find things going the other way.

      Cheers

      1 Reply Last reply Reply Quote 0
      • R
        relink2013
        last edited by

        I was literally just about to post this exact same question! I have a few servers that I need passed through to my regular WAN interface, while pretty much everything else can go through the VPN.

        If there is a firewall that can do this, pfsense is it…now if we could just figure out how to do it? anyone... ;D

        1 Reply Last reply Reply Quote 0
        • R
          Ryu945
          last edited by

          Have going through the VPN the default and make specific firewall rules that route your traffic elsewhere before the rule that gives you internet.  The computers you want to bypass the VPN should be on static DHCP leases so you can specifiy them in the rule.  Tell me if this response is not detailed enough.

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