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

    PfSense VPN to local services ?

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 594 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.
    • S
      srytryagn
      last edited by

      I have many local services on my network that I access by their local IPs, like portainer, cockpit, proxmox etc...

      Can I use pfsense vpn to connect to those services remotely from outside of my lab ?
      How do I do this securely ?

      Sorry for newb question, but I am just starting out with vpns...Thanks for your help

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

        @srytryagn yes if you setup a vpn you can access your local resources - that is the whole point of vpn to be honest.

        You could use either openvpn, tailscale, wireguard or ipsec.

        here is documentation for openvpn setup.. its pretty much follow the bouncing ball using the wizard

        https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-ra.html

        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.8, 24.11

        S 1 Reply Last reply Reply Quote 1
        • S
          srytryagn @johnpoz
          last edited by

          @johnpoz Tried tailscale setup. When entering local IPs from a rmote machine I was unable to access the services I need.
          I read that if we do not have fixed public IPs tailscale is really the option to use.
          I am open to openvpn, but is a fixed public ip a must for that to work ?
          How do I get started and which way is the most secure ?
          (Thanks for helping !)

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

            @srytryagn anyone or anything that tells you need a fixed public IP to make something work doesn't have a clue.. Ok running a mail server, is going to be problematic if your IP changes..

            Keep in mind just because you get your IP from dhcp from your ISP doesn't mean it changes ever 15 minutes.. I have had my current IP for like 2 years or something, last time it changed was when the ISP went through a merger and redid their ip space..

            If your ip changes every 15 minutes or something your going to have a hard time.. But normally you just setup dynamic dns to register your public IP with some fqdn.. There are many free options..

            Then use this fqdn to connect to your vpn..

            As to accessing your services.. Many users always forget local firewalls on the boxes they want to access while via a vpn.. Said firewall prob not going to like the IP your vpn client is connecting from..

            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.8, 24.11

            1 Reply Last reply Reply Quote 1
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              OpenVPN is probably easiest to setup for this from pfSense but Tailscale should work.

              Yes, it's probably a missing firewall rule somewhere.

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