OpenWRT: Printer Server

From OnnoWiki
Revision as of 21:00, 1 March 2026 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
ssh -o HostKeyAlgorithms=+ssh-rsa \
    -o PubkeyAcceptedAlgorithms=+ssh-rsa \
    root@192.168.1.1


opkg update
opkg install kmod-usb-printer
opkg install p910nd luci-app-p910nd


Cek

ls /dev/usb/lp*


rc.local

Edit /etc/rc.local tambah sebelum exit 0

/etc/init.d/p910nd restart

Allow Firewall

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-Printer-9100'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].src_ip='192.168.68.0/22'
uci set firewall.@rule[-1].dest='lan'
uci set firewall.@rule[-1].dest_ip='192.168.1.1'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].dest_port='9100'
uci set firewall.@rule[-1].target='ACCEPT'

uci commit firewall
/etc/init.d/firewall restart


Linux & Windows

Pastikan Settingan di arahkan ke

ip-address-openwrt:9100


Android

  • Install Let's Print Droid
  • Manual Printer Config
    • Printer Name > Nama Printer
    • Protocol > Raw - Jet Direct
    • IP Address/Computer Name > IP address openwrt
    • Save Changes

Untuk print file

  • Select File
  • Kirim ke Printer