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

    PfSense + PIA VPN + DDNS + Servers to WAN (not VPN) best practices?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 2.6k 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.
    • M
      METDeath
      last edited by

      So I finally decided to get serious about my internet traffic and privacy setup, I got PIA VPN setup. My issue is that some devices/services don't work well or at all with the VPN (gaming, Plex), some hotel websites.

      Everything I care about specific routing has a static address assigned in the DHCP reservation table. I initially followed a guide that had me go into General > Setup and force the PIA DNS servers to prevent leakage, and that works fine.

      Am I better off using Outbound NAT rules or Firewall rules to control what devices get to use the VPN and which go to my ISP assigned IP (which is where my DDNS points)?

      My primary issue is I'm trying out Plex, but can't get it to be seen for external sharing (something I'd like to do). Oddly enough, I can get Emby to work, but it doesn't phone home and just works with the DDNS name/port. The biggest problem is despite blocking the Plex server (unRAID with a docker) from going to the VPN, or using the VPN gateway, it still pulls the VPN external IP and not the WAN.

      Or would I be better served just running the PIA client on my PC and letting everything else just work?

      pfSense on AMD AM1 5350 with IBM/Intel PRO/1000 Quad port Gigabit NIC

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        How you control what uses the vpn client you setup in pfsense is normally done through policy routing.  You just create firewall rules for what to go out your vpn and what you want to go out your normal internet connection.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          METDeath
          last edited by

          So would that be Firewall Rules > WAN, VPN, or LAN?

          The previous guide I used did it through the NAT > Outbound table.

          Sadly, my previous experience was just with DD-WRT and Tomato which have a slightly less professional and more consumer orientation to them.

          pfSense on AMD AM1 5350 with IBM/Intel PRO/1000 Quad port Gigabit NIC

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            its done on the interface the traffic would first hit pfsense.. So if devices on your lan, that is where you would put the rule pointing it to the gateway on the requirements you want to use to send it down the vpn.

            As to outbound nat, yes that is a requirement of setting up a client connection you have to tell pfsense how to nat the traffic going out the vpn.  But that is not where you control what goes down the vpn.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • M
              METDeath
              last edited by

              So, this is my LAN firewall rules and these are my Outbound NAT rules. I set DNS servers for each gateway under System>General settings.

              However, when I put them in place and disable the default LAN to all rules I get no connectivity on both the file server (101) and my PC which should fall under the next rule, correct?

              Edit: This was the guide I used.

              pfSense on AMD AM1 5350 with IBM/Intel PRO/1000 Quad port Gigabit NIC

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