Raspberry to block printer exposed on internet

Hello everyone, I have a network-shared printer directly connected to the router (NOT connected to the PC). I need to have the printer accessible with open ports. To prevent external attacks, is it possible to use IPFire to allow access to the printer only from specific IP addresses that I consider trustworthy, excluding others?

The configuration I have in mind is this: Router → LAN cable → Raspberry Pi with IPFire → LAN cable → printer.

I’d like to mention that the printer is now reachable via a static IP address. I’m also exploring alternative solutions to replacing the router, which doesn’t support the necessary function. While searching online, I came across IPFire, but I’m unsure if it’s suitable for my case.

You can make a network group of IPs and set up a firewall rule.
And a service group for the printer ports

1 Like