Remote admin to a pfSense box across the ocean - what do you actually use?
-
My parents still live abroad and I moved to the US for work about a month ago. The family pfSense box is still at their house and I am the only one who ever touches it. Their internet keeps dropping for a few minutes around 2am (suspect the ISP doing some nightly reset) and I would love to check logs and settings myself instead of talking my dad through webConfigurator over the phone.For those who have done this: what do you actually use for admin access from another country - OpenVPN, WireGuard, something else? And how serious is the usual warning about never exposing the web GUI to WAN if keys and certs are strong? Their line is also behind CGNAT, so no real static public IP there - is the built-in dynamic DNS updater good enough for this, or is something else better?Real-world experience welcome. I would hate to lock myself out of a router that is 6000 miles away.
-
@AlexGreeneUS if they are behind a carrier grade NAT there is no direct way to get access to it from the outside by fx enabling wireguard or openVPN.
The exception is if you have a PfSense as well with s public IP. Then you can make a site 2 site VPN where the remote box always initiates the tunnel.But there is a simple and easy to use indirect way - create a tailscale account, and install the tailscale VPN package on the box for remote access.
But - it’s not direct, so any issues with upgrading or tailscale not starting, and you still won’t have acces
-
@AlexGreeneUS If you were to allow logins from anywhere people will guess passwords 24x7. Plus there is the recent PHP vulnerability.
As an alternate thought, can you connect to a PC in their house?
You could then log in,
and/or temporarily allow access from your current IP.(except of course, CGNAT in this case) -
Mmm, the pfSense behind NAT will need to connect out to something you control. So, yes, that could be a VPN to something static at your location or via tailscale. Either way you will want to use a VPN (which tailscale is).
-
-
Never expose the admin GUI to the WAN. Full stop! Since you are behind CGNAT you will not be able to reach it anyway.
-
Install and use Tailscale. They have a free tier up to 6 users, unlimited number of devices, and it will traverse any level of NAT, including CGNAT. I have successfully used Tailscale over multiple levels of NAT and CGNAT (Starlink, ATT). You can run Tailscale on pfSense or any number of client devices and operating systems. You only need a single instance running on or behind your firewall if you enable subnet routes to reach any IP based device on the remote LAN. Just make sure the devices have a static IP or static IP reservation in the pfSense DHCP server. Might be a bit tricky to instruct someone over the phone to set all this up. I did this with my parents to allow me to remotely administer their network and devices, including allowing backups to my TrueNAS appliances. All of which were behind several levels of NAT where they were living at the time. Also, it helps if the local and remote sites are on different subnets to avoid IP address conflicts when accessing via the local IP (i.e. not the Tailnet IP)
-
Depending on what appliance you have, if it has a HDMI output and USB ports for console or BIOS access, you can connect a GL-iNET remote IPKVM. GL-iNet does have a cloud (goodcloud) based remote access capability, but I would not recommend using it. The GL-iNet devices "phone home" a lot. I intentionally added IPTABLE rules on the IPKVM to block all outbound connections, but because Tailscale on pfSense "appears" as if the traffic originates from the local LAN, I can still remotely connect to the IPKVM through Tailscale. Or you can enable the built-in Tailscale client on the IPKVM. Below is a screen cap of the pfSense console terminal through the IPKVM.

-
-
Thanks everyone - convinced: no GUI on WAN, and a relay that dials out via subnet routes is the way. One real worry though: if the tunnel ever fails, I'm stuck on a 6000-mile phone call. What local fallback would you put in place first so you can't lock yourself out?
-
@AlexGreeneUS Backup plan, tether a dual homed system to a phone. Have the system VPN into your network and use that to connect to pfSense. Practice before you need it.
Or facetime with the phone pointed at the monitor and "remote" type what is needed. -
@AlexGreeneUS if it is Plus, or I guess 26.10 and later,
https://docs.netgate.com/pfsense/en/latest/backup/zfsbe/tips.html
They can unplug to recover. -
Thanks everyone - convinced: no GUI on WAN, and a relay that dials out via subnet routes is the way. One real worry though: if the tunnel ever fails, I'm stuck on a 6000-mile phone call. What local fallback would you put in place first so you can't lock yourself out?
I would look into having several approaches available.
The obvious ones is the boot environment and a tethered system as already mentioned.I myself have an unattended solution on my remote systems. On remote sites I use a managed switch that can schedule config jobs and has API/SSH available for automated changes + a raspberry pi 2:
The Raspberry PI 2 is fitted with a 4G dongle and a POE HAT and wired to a switch port that is scheduled in the switch to turn PoE on 4 times a day. If power is turned on, it boots, estabslishes its 4G connection, send me a couple of notification Emails, and connects to "Raspberry Connect". Raspberry Connect is a Cloudservice that comes free of charge with a PI and allows remote control from a browser with UI/CLI/Shell access to the remote PI.
This PI then has a console USB connection to my pfSense and my UPS, so I can remote control both, or even hard reboot the pfSense by removing power.I have a little shell script running on each site (can be run locally on pfSense if needed), that looks at internet availability 4 times a day (20min before POE power on schedule). If Internet is present it postpones the upcoming scheduled PoE event on the switch.
A simple fool proof setup because it's default state is to bring the "backdoor access" online 4 times a day unless something automatic postpones it :-)
-
Thanks everyone - convinced: no GUI on WAN, and a relay that dials out via subnet routes is the way. One real worry though: if the tunnel ever fails, I'm stuck on a 6000-mile phone call. What local fallback would you put in place first so you can't lock yourself out?
If you REALLY need out-of-band management with no internet connectivity for the box, then something like a IP-KVM and another way to the internet would be necessary. Like (as it was already mentioned above) the 5G box from gl.inet (gl-rm10rc -> Comet 5G), that has its own 5G connectivity you could wire to that pfsense and you could run it with netbird, tailscale, zerotier (or AFAIR ovpn/wg native) to have it connected to your own network. In a total offline scenario you could reach your box at least via KVM and look for console output etc.
If there's at least connectivity left when the pfSense box is potentially dead (e.g. an ISP router up front) you could at least have someone plug an emergency box onto that router (e.g. an older raspi or some small NUC-style PC) that is wired to the pfsense box (e.g. via serial) so you could read console outputs that way.
There are multiple solutions that only depend on the grade of resilience you want to have (and with differing costs).
Also: The plus releases 25.x and 26.x where really nice to update and with their boot environments feature we already had an update gone wrong that was on the other side of the atlantic that we had to wait for ~15min when the box came back online (killed by the watchdog and by taking too long to boot) with the old snapshot and reported a failed boot into the new one. Fixed the problem (was >10000 config.xmls due to pfblocker+config history bug due that time), cleaned up the files and re-did the update -> came back without a problem. Those 15min we were sweating but it was really great to see the watchdog and BEs play their role so well to auto-recover that box.
Cheers
-
Thanks — the IP-KVM with its own cellular link and the serial-attached Pi both sound doable, and the watchdog plus boot environments auto-recovering a box across the Atlantic is exactly the reassurance I needed. Does that cellular box dial out fully independent of pfSense, so you still have a path when the firewall itself is down? Cheers.
-
Thanks — the IP-KVM with its own cellular link and the serial-attached Pi both sound doable, and the watchdog plus boot environments auto-recovering a box across the Atlantic is exactly the reassurance I needed. Does that cellular box dial out fully independent of pfSense, so you still have a path when the firewall itself is down? Cheers.
If you're referencing the Comet 5G then the device has ethernet, wifi and 5g redcap support and needs a nano SIM to be active independently. But you could of course do the same with e.g. a JetKVM mini or PiHole + KVM stuff plus an external 5G routing box. If you're having a Netgate box on site it's only important, that you get access to some host that has the serial console connected to the firewall as it doesn't have HDMI to see. And having a USB stick with at least the online installer (or the new offline one perhaps) available to be plugged in if you'd have to reinstall is handy, too.
Cheers
-
Good to know the Comet only goes independent with a nano SIM in - I will order one, wire the serial console to a small host, and keep an online installer stick by the box. For the serial setup, does baud rate matter much for watching a full reinstall, or is it just for GRUB?
-
@AlexGreeneUS You won't get the correct output if your serial settings aren't in order :) So 115200-8-N-1 (+ no flow control) is normally the way to go and set up on most devices.
-
@AlexGreeneUS does the pfSense box have serial only or also HDMI? The Comet (or KVM in general) are mostly used for getting remote HDMI & keybaord/mouse access. The Comet doesn't have a serial console that you can connect to a host. If you can't use the HDMI then it's an expensive tool with very limited use for you.
Since it got 64GB of eMMC storage you can place the Netgate installer on the Comet itself, no need for another host. And the ISO on the Comet will show up as an USB CD drive on the pfSense Box and you'll be able to boot from it, if the pfSense Box's BIOS does support that.
-
Thanks — the IP-KVM with its own cellular link and the serial-attached Pi both sound doable.
FYI, you can connect an external USB-to-serial adapter to the USB 2.0 port of the GL-iNet IP-KVM devices for serial console access.
[root@kvm:/dev]# ls tty* tty ttyFIQ0 ttyS0 ttyUSB0 [root@kvm:/dev]# lsusb Bus 002 Device 002: ID 0403:6001 Bus 001 Device 001: ID 1d6b:0002 Bus 002 Device 001: ID 1d6b:0001 [root@kvm:/dev]#minicom -s Serial port setup
Default and custom config files are stored in the /etc/ folder. NOTE: May not persist on firmware upgrade.
[root@kvm:/etc]# ls -lart mini* -rw-r--r-- 1 root root 123 Nov 6 06:35 minirc.dfl -rw-r--r-- 1 root root 122 Nov 6 07:56 minirc.testminicom ctrl-a z
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy