Skip to main content

OpenWRT wireless non-spooling printserver

With p910nd, a small daemon acting as non-spooling printserver, it’s easy to get non WiFi or non Ethernet Printers in your network. I use this configuration for a Brother (QL-500) labelprinter. You must have installed the regular printer drivers on your PC.

At first you have to install a few packages:

opkg update

opkg install kmod-usb-printer p910nd


Then you can connect your printer and turn it on. Run dmesg and look for entries like

[ 10.530000] usb 1-1: new full-speed USB device number 2 using ehci-platform

[ 10.570000] usbcore: registered new interface driver usblp
[ 10.750000] usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x2015


Change the config file /etc/config/p910nd to the following (assuming you connect a usb printer to the OpenWRT device):

config p910nd

option device /dev/usb/lp0
option port 0
option bidirectional 1
option enabled 1


Add the following three blocks to the end of the /etc/config/firewall config file (for printing via WAN, in my case WiFi is in the WAN):

#allow attached network printer

config 'rule'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '9100'
option 'target' 'ACCEPT'

#allow ssh

config 'rule'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '22'
option 'target' 'ACCEPT'

#allow webinterface

config 'rule'
option 'src' 'wan'
option 'proto' 'tcp'
option 'dest_port' '80'
option 'target' 'ACCEPT'


Then restart the firewall and start / enable p910nd:

/etc/init.d/firewall restart

/etc/init.d/p910nd start
/etc/init.d/p910nd enable


To add the printer in Windows have a look to the following guide:

Open Control Panel, switch to printers. Click “Add a printer”

Click on “The printer that I want isn’t listed”.

2014-03-17 13_51_19-Add Printer

Choose “Add a printer using a TCP/IP….”

2014-03-17 13_53_37-Add Printer

Enter the IP-Adress of your OpenWRT device, choose a name for the port and deselect the checkbox for auto query.

2014-03-17 13_54_14-Add Printer

This can take a moment…

2014-03-17 13_54_49-Add Printer

Leave the default settings.

2014-03-17 13_57_01-Add Printer

Choose the driver.

2014-03-17 13_57_13-Add Printer

Name the new printer.

2014-03-17 13_57_26-Add Printer

Be sure to check the following in printer properties:

2014-03-17 14_00_16-Edit Post ‹ — WordPress

2014-03-17 14_00_48-Brother QL-500 (Network) Properties

2014-03-17 14_00_54-Configure Standard TCP_IP Port Monitor

And you are ready to print your first page.

Leave a Reply

Your email address will not be published. Required fields are marked *