posted in Selfhosted

How do you isolate a printer in your homelab?

Hi all, I’ve gotten a Brother machine (DCP series) that can do wifi printing/scanning over their proprietary app. However, I’d like to lock it down from my network, because having it on the same LAN as my other devices and the ability to phone out to the internet seem like room for mischievious activities.

For context, I have OpenWRT on my router, and my clients can access the Brother using their iPrint&Scan app and AirPrint on wifi, as well as the traditional USB port. But I’m not good in networking. In my research, I drafted out the following solutions:

  1. Create a firewall rule to block the printer itself from making outbound requests. Seems simple, but I’m not sure if this can persist after IP changes or not.
  2. Create a VLAN for “IoT devices” that cannot send outbound requests to my normal VLAN nor the internet. Inspiration from this video, I’d need to manage a new SSID but it may come in handy for more IoT devices later.
  3. Hook the Brother up to a Raspberry Pi via USB, and install CUPS + SANE on the Pi. Assuming the Pi cannot “phone home” on behalf of the printer, this makes it a local-only “print+scan service” on my normal network and doesn’t require an extra VLAN.

I’d like to ask: which solution above is best for “neutering” the Brother? Or are there any alternatives/details I might’ve missed? I’m not sure if blocking outbound requests this way is enough of a security hardening for an untrusted device, and if there are any usability issues I’ve overlooked so far.

Thanks for any advice, and please share any printer/scanner setup you have in your networks as well. So hopefully I can get more inspiration!

enPage

Replying to @⁨rearview@lemmy.zip⁩

Hi all, thanks for all your comments and suggestions, here’s a late update:

I went with option 2 and configured the second VLAN + Wifi with the printer on it. The process was smooth except for half a day troubleshooting why DHCP was not possible (turns out I have to manually tell dnsmasq to listen on the new interface as well…). I set up a static IP address for the printer though. Adding the machine from my other devices involve manually typing out its IP, something I hope to resolve with an avahi daemon on the router later on.

For Android specifically, printing can be configured through its “Default Print Service” which can be found in Settings. Scanning requires a separate app, and I found ScanBridge to be exactly what I need and also FOSS. The address to type in is http://$PRINTER_IP_ADDRESS/eSCL/ (note the trailing slash). There’s also Mopria Scan, which is proprietary.

If you use a VPN on the Android, remember to exempt the print service and scan app from the tunnel.

Replying to @⁨rearview@lemmy.zip⁩

If it’s a networked printer it needs to be able to broadcast to the LAN if you want IPP to work – which you probably do, since it’s well supported by all OS and lets you autodiscover the printer and print directly from most of your devices.

This means you can’t isolate it fully from the LAN, so solution 2 is out.

Solution 1 is good if you can trust the thing not to change or disguise its MAC address. I’ve heard of devices that have a 3rd dynamic MAC in addition to the wifi and ethernet MACs, that they use to bypass such restrictions. 🤪

In order to do (1) properly you should create a firewall zone specifically for the printer, and allow that zone access to LAN but deny access to WAN. Then associate that zone with either a wifi access point created specifically for the printer, or with a specific switch plug if connected via Ethernet. This way the printer can’t bypass the restriction because it comes packaged with the only way it has of getting any connectivity.

However OpenWRT firewall zones also have issues with cross-zone broadcast, but can be bypassed I think by installing and using Avahi on the router. Don’t quote me on that.

Solution 3 seems best if you want to fully isolate it as well as retain IPP capability. That’s what I did with my printer, I connected it with USB to the server and I run CUPS + Avahi in a docker container that uses an ipvlan network to broadcast.

Replying to @⁨lemmyvore@feddit.nl⁩

Your comment about #2 is not true. VLANs can be fully isolated from other subnets on the LAN - sure. But they can also NOT be isolated. I have one fully isolated VLAN, and the rest are not isolated.

With a savvy user, you can also tehnically isolate VLANs form only specific other VLANs. I’ve never needed to do this, but know it’s possible.

Edit: for reference, I looked up details and found a helpful link and example:

5. Firewall zones for VLANs

config zone
    option name 'lan'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'ACCEPT'     <-- This line allows intra-zone (inter-subnet) routing
    list network 'lan'
    list network 'your_new_vlan' <-- Adding your new VLAN here stops it from being isolated
openwrt.org[OpenWrt Wiki] 5. Firewall zones for VLANs

Replying to @⁨lemmyvore@feddit.nl⁩

Damn, I didn’t know devices do these dynamic MACs, but yeah it’s not a trusted field to begin with.

By IPP autodiscovery, do you mean mDNS? If so, does the router needs to install avahi as well for single-network discovery to work? Or just the client?

Avahi on the router for multi VLAN discovery seem to be a nice idea, I’ll look into it and maybe try to hook it up to solution 2. I’ve thought users could just manually input the IP addresses (and the non-tech users will just simply be onboarded by me anyways), but having it advertised by default may just be less of a hassle for them.

Replying to @⁨rearview@lemmy.zip⁩

IPP is a universal printer protocol aka “print anywhere”. Some printers support it natively, some need some help from a PC. If that PC runs Linux the most likely method is to run CUPS and connect it to the printer over USB.

By IPP autodiscovery, do you mean mDNS? If so, does the router needs to install avahi as well for single-network discovery to work? Or just the client?

Yes the autodiscovery is done with mDNS, which on Linux is done with Avahi.

Typically Avahi is needed if you consume services over mDNS or provide them.

So the Linux clients need Avahi. But the router only needs Avahi if the printer is connected to it, or to propagate broadcasts across zones.

I’ve thought users could just manually input the IP addresses

You can, but it’s really nice to have the printer available automagically (on any OS).

BTW one extra potential benefit of solution 3 might be that the “printer” would always appear to be present on the network and accept print jobs, even if the actual printer is off, because the Pi running the print server would actually be on. Otherwise if the printer itself is providing the connectivity and announcement it will not appear in the list when it’s off. Whether you consider this a plus or not depends on how you handle your printers, I turn mine off when not in use, but some people let it go into powersaving mode so it’s always ready to print.

Replying to @⁨rearview@lemmy.zip⁩

  1. will block the printer but the app could still phone home
  2. may work but client devices should reach the printer in the vlan. also see point 1. best for other kind of iot devices
  3. best approach security wise but may take some work to it get running smoothly

What I would do:

  1. (easiest) block the printer and look what the client does. block any suspicious client behavior. you can use pihole to easily monitor/ block, later you can add firewall rules on your router
  2. (bit harder) your option number 3 if: you have a raspberry pi, your printer works well with sane and cups, you can set up clients to your desired workflow (having many non tech family members wanting to print will quickly become a nightmare)

Replying to @⁨pp99@sh.itjust.works⁩

Your 1. seems good enough as a starter, yeah. I’ll probably tell my users to ditch the app altogether otoh, so I’m looking forward to the Pi as a long-term solution

Though, what kind of non-tech nightmares are you referring to? I’d think that if being done properly and with autodiscovery enabled, it would be as seamless as “connect to printer/scanner X on the network” which is the Pi itself. But I probably haven’t understood enough

Replying to @⁨rearview@lemmy.zip⁩

I did #2 and it works perfectly. I have an IoT VLAN and my Brother printer/scanner is on it. I pivoted to the Ubiquiti/Unifi network infrastructure several years ago due to mostly seemless integration with the routers/switches/APs. But have used OpenWRT in the past (but didn’t set up VLANs then). Not sure the steps and if it requires manual firewall rules for the VLAN in OpenWRT.

In case there identical/similar options to Unifi, however, I’ll just mention it’s pretty simple. Create the VLAN (new subnet vs the default network, e.g. 10.0.0.0/24 vs 10.1.0.0/24), deselect the “allow internet access” option, and make sure to select “network isolation” option (which blocks it from speaking to other VLANs/subnets). That’s it. (For conveniences, I also created another Wifi network call “XYZ_IOT” and then connected the printer to it. The network is fixed to that new IoT VLAN).

Technically, those options are effectively convenient shortcuts for firewall rules that will get removed or created, accordingly, for that specific VLAN.

Takes longer when you’re uncomfortable or struggling through it, but the complete setup time took maybe 15-20mins. If OpenWRT doesn’t have those convenience shortcuts, might take a bit longer to search for example firewall rule configs online and then make them.

Replying to @⁨rearview@lemmy.zip⁩

I have option #1 set up for my hp printer using its mac address on opnsense. it’s worked for several years to prevent phoning home, updates breaking 3rd party ink, etc. I also have its various smart features turned off. We only use it for printing and scanning on the local network anyway.

i’d do a vlan but I only have a dumb switch. that may be a future network upgrade as part of maybe upgrading faster than 1gig ethernet.

Replying to @⁨rearview@lemmy.zip⁩

It basically depends on whether you want to rely on mdns, like printing from your phone.

The standard lock down by making a vlan and subnet and then adding filtering works fine if you can reach the printer reliably by IPP or jetdirect.

Once you need to connect two disparate broadcast domains, things get weird. It was the same story for Chromecast devices for me, their functionality and convenience are based on a relatively flat network and a single broadcast domain.

Replying to @⁨rearview@lemmy.zip⁩

This is just my story and how I have done/am considering looking at doing it. I to have a OpenWRT firewall, I to have lived in the Apple ecosystem my whole life, but I am slowly climbing out of it.

I have a Samsung laser printer of some sort, before I got into the whole home labbing and privacy thing I just had a raspberry pi of some sort (it rotated a few times because I was attempting the adblocking with pihole off and on). When I decided privacy was the better option and I had my pihole figured out I installed CUPS on a pi zero 2, I so rarely used the thing that it was not a thought for me to look up and install SANE I just used the app and the wifi from the printer. A day came a long when I had to do the wifi suffle to do the scanning when I thought there must be a better way and installed SANE. Fun side note; I have a perimant disability and see a physio, the insurance I have wants some paper work (that so rarely changes) every three months so I just have a script that looks at my calendar so the day of my physio treatments and counts the number of times I have seen them and prints out the documents if it is time to send them! So number 2 is my suggestion for sure if you are just beginning.

I have a vLAN (10.0.69.0/24) that my homelab sits on so my printer is attached to it that way with the pi I am using for CUPS and SANE, my HAOS pi is also on that vLAN and I see HA has something it can do with the printer I have considered looking at that once or twice. Now that you have mentioned this I may just read up on it because I have issues with SANE, not sure if it is configured correctly or my printer just really does not like it but if HA can do the things I may set it up and attach it to my IoT wifi vLAN (10.66.6.0/24) which does not access the outside world but HA and my 2 personal vLANs (10.42.0.0/24 for wifi and 10.4.20.0/24 for my VPN) can do things in it. I got into numbering my vLANs with fun combos when one day I was out and about when I could not connect to my VPN because it used the same IP range or something like that.

I use static IPs for everything within their own vLAN but I do not think it would be worth my time to set up firewall rules just for it when I have other options. If it does not need to phone home for anything other than data harvasting it is either not attached to the internet like my “smartTV” or it goes onto my IoT wifi that HA can do the stuff with.

Replying to @⁨rearview@lemmy.zip⁩

Put it on its own VLAN or guest SSID in OpenWRT, then add a firewall rule that only lets your client subnet reach it on 631 and 9100. Block WAN for that zone completely. AirPrint discovery needs mDNS across zones, so you’ll want umdns or avahi as a reflector, and that’s the part that usually breaks. I’m building a home box that does this by default for IoT stuff. Would you want it to just work, or would you rather see the rules?

Replying to @⁨nixos_fan@lemmy.world⁩

Sort of, there are some similar aspects to it. I refer to it as my “internet appliance gulag”. They can all live there in their big open-air prison and be as totally insecure as they want, spying on and hacking each other all day long and they can try to access my network or the internet all they want, none of them are getting out unless I have explicitly reviewed whatever the fuck it’s trying to do and where it’s trying to go and why.

Do not phone home, do not pass go, do not collect $200, go directly to Gulag.

Replying to @⁨rearview@lemmy.zip⁩

You’re overthinking this with 2 & 3. All you need is to block all Brother Internet traffic.

Set up a static DHCP IP for the printer in Openwrt and create firewall rules to drop all WAN packets to/from that IP.

If you want to see evidence those packets are being dropped in real time use tcpdump. When watching LAN traffic you will see the printer sending packets to the WAN interface (they won’t get there) but will never see a response directed back to the printer.

I have a Brother printer (plus cameras & TVs) and an Openwrt router set up that way and have had zero issues.

Replying to @⁨spaghettiwestern@sh.itjust.works⁩

1 is enough if the hardware manufacturer is currently trustworthy at the time you put the firewall rules in place. Brother is AFAIK trustworthy. I have a Brother printer which is on my main network with no special firewall rules, but my printer is old enough to drink. It never connected to any cloud services and could never update itself to introduce new anti-features.

For both 2 and 3 you probably want a Raspberry Pi or other server to make the printer accessible to devices on your main network. Unless it’s a Facebook or Amazon or LG printer or something you should be fine with just 1.

Replying to @⁨spaghettiwestern@sh.itjust.works⁩

New printers can be okay. I don’t know of any specific problems with new printers except those ones with the ink subscription services. I’m saying my printer is old because it’s from another time. The only reason you’d isolate your networked printer in 2005 would be if you didn’t want other people to access your printer. Devices in your home automatically, deliberately making themselves worse on command from a cloud service was not a thing. The biggest danger with devices this old is that they probably have unpatched security vulnerabilities exploitable by anything else that gets on your network.

I have a VR headset from Facebook that is on its own VLAN because it defaults to randomizing its MAC address by default and this allowed it to bypass the firewall, phone home, and nonconsensually install new anti-features after being blocked because the setting got reset back to random when changing something. Recent LG TVs and other devices with worse preinstalled malware have been known to make requests to other devices on your network, but I’ve never heard of them using those other devices to get around network restrictions, at least not directly.

Replying to @⁨i_am_not_a_robot@discuss.tchncs.de⁩

I have a VR headset from Facebook that is on its own VLAN because it defaults to randomizing its MAC address by default and this allowed it to bypass the firewall, phone home, and nonconsensually install new anti-features after being blocked because the setting got reset back to random when changing something.

That is infuriating and I’d do the same.

Plenty of reports of devices like LG TVs acting as gateways to external devices and LG in particular seems to be a privacy nightmare. I bought a couple of appliances that advertised their smart features only to find LG’s app was required. That app actually required both Internet access AND my exact location at all times to function at all! I shut it all down and disconnected everything from wifi.

You may be right to be concerned even about printers though. At some point we’re going to be reading about some built-in AI hacking other network devices for Internet access and transmitting our private information to the world.

Replying to @⁨rearview@lemmy.zip⁩

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters AP WiFi Access Point DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network IoT Internet of Things for device controllers Unifi Ubiquiti WiFi hardware brand VPN Virtual Private Network

[Thread #163 for this comm, first seen 9th Nov 2026, 20:10] [FAQ] [Full list] [Contact] [Source code]

Hachyderm.ioImran Nazar ~ عمران نزر (@Two9A@hachyderm.io)3.24K Posts, 316 Following, 296 Followers · Front-end #typescript developer and general keyboard tapper; author of Internet RFC 7168 (Hypertext Coffeepot Control Protocol for teapots); occasional plumber, more than occasional #c64 #retrocomputing enthusiast, terrible at classical #piano. Header photo is a verdant scene looking over the landscape near Buxton, England, taken from a single-track country road.

Replying to an earlier post

I use a vlan for certain isolated devices that only certain personal devices have access to via their IP static addresses set in my firewall. That VLAN has no WAN access either. Sure the devices could technically talk to each other, but that doesn’t seem like a big deal since they can’t go external and only my phone and laptop and a few other trusted devices can even connect into the VLAN.

Replying to @⁨rearview@lemmy.zip⁩

I use VLANs for this as others have mentioned. You can create VLANs for the logical grouping of devices (ex. Home, Work, IoT, etc), then you create firewall rules to block specific traffic sourced from the IoT VLAN to the other VLANs or out the WAN interface. This still allows traffic originating from the Home/Work VLANs to talk to the printer but doesn't let devices from that VLAN scan the network.

Replying to @⁨rearview@lemmy.zip⁩

For myself, I use a static IP on all peripheral devices, like printers and scanners, in combination with a whitelist on the router because my devices don’t change very often and I can add new ones individually as they are acquired. We never print or scan from phones so it works well, and freely allows home network use while blocking external network access.

Beware any built-in home router solution like “parental block” for isolating devices because on mine at least, it only blocks IPv4 and anything using IPv6 sails right past it.

Also, you probably already do this, but always test, and keep a backup of your router/whitelist/exception settings.

Replying to @⁨rearview@lemmy.zip⁩

FWIW, I use the VLAN approach. I have a VLAN (101) specifically for IoT shit. The firewall allows devices on other VLANs - general purpose (104), infrastructure (102) and servers (103) to connect in to 101, but nothing can reach out. Works seamlessly. The only issue you might bump into is that some devices use UPnP/mDNS for discovery, but OpenWRT has a proxy module you can install to facilitate that.

You may be wondering why the tags I use for my VLANs are so odd. I also wonder that sometimes.

Replying to @⁨rearview@lemmy.zip⁩

VLANs. You create an IoT VLAN, set it to be accessible the specific way you want, and you're done.

If you want to be extra secure you can fire up a Docker container that sits on this VLAN + your regular network, and proxies printer requests between the two, so you have perfect control over what happens and when.

Fair note, none of the apps (e.g. AirPrint) will work this way. They use Brother's cloud to connect to the printer.