Hello. The english is not my mother language and excuse me for.
This is my first post here, it requires support for installing print server in order to use in my home network of DCP1510 Brother printer.
My router TP_Link TL-WR1043ND ver 1.10 that I use, has installed firmware OpenWRT 12.09 Attitude Adjustment and print server is installed and configured, the printer runs smoothly. Unfortunately graphical interface is spartan, and I am command line novice. I wanted to develop a set of rules in the firewall, with screening on various websites and graphical interface does not allow me that. The console I can not manage to do.
I tried Gargoyle version 1.6.2-ar71xx-generic-TL-WR1043ND-v1. I installed the firmware that allows the graphical interface and easy settings of the firewall restrictions. The problem that we're still encountering it and that I capped print server is configured. I use the information here: http://www.gargoyle-router.com/wiki/dok ... ed_printer and checked print server configuration p910nd. I gave accept in /etc/config/firewall for port 9100 and /etc/init.d/firewall restart.
Modules installed are kmod-usb-UHCI, OHCI-kmod-usb, kmod-USB2 and kmod-usb-core. P910nd Print server is configured as follows:
root@Gargoyle:~# uci show p910nd
p910nd.@p910nd[0]=p910nd
p910nd.@p910nd[0].port=0
p910nd.@p910nd[0].bidirectional=1
p910nd.@p910nd[0].device=/dev/usb/lp0
p910nd.@p910nd[0].enabled=0
root@Gargoyle:~# uci set p910nd.@p910nd[0].enabled=1
root@Gargoyle:~# uci commit p910nd
root@Gargoyle:~# /etc/init.d/p910nd start
and the firewall settings are:
root@Gargoyle:~# uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].network=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].network=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@zone[1].mtu_fix=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
firewall.@rule[0]=rule
firewall.@rule[0].name=Allow-DHCP-Renew
firewall.@rule[0].src=wan
firewall.@rule[0].proto=udp
firewall.@rule[0].dest_port=68
firewall.@rule[0].target=ACCEPT
firewall.@rule[0].family=ipv4
firewall.@rule[1]=rule
firewall.@rule[1].name=Allow-Ping
firewall.@rule[1].src=wan
firewall.@rule[1].proto=icmp
firewall.@rule[1].icmp_type=echo-request
firewall.@rule[1].family=ipv4
firewall.@rule[1].target=ACCEPT
firewall.@rule[2]=rule
firewall.@rule[2].name=Allow-DHCPv6
firewall.@rule[2].src=wan
firewall.@rule[2].proto=udp
firewall.@rule[2].src_ip=fe80::/10
firewall.@rule[2].src_port=547
firewall.@rule[2].dest_ip=fe80::/10
firewall.@rule[2].dest_port=546
firewall.@rule[2].family=ipv6
firewall.@rule[2].target=ACCEPT
firewall.@rule[3]=rule
firewall.@rule[3].name=Allow-ICMPv6-Input
firewall.@rule[3].src=wan
firewall.@rule[3].proto=icmp
firewall.@rule[3].icmp_type=echo-request echo-reply destination-unreachable packet-too-big time-exceeded bad-header unknown-header-type router-solicitation neighbour-solicitation router-advertisement neighbour-advertisement
firewall.@rule[3].limit=1000/sec
firewall.@rule[3].family=ipv6
firewall.@rule[3].target=ACCEPT
firewall.@include[0]=include
firewall.@include[0].path=/etc/firewall.user
firewall.@include[0].reload=1
firewall.@rule[4]=rule
firewall.@rule[4].src=lan
firewall.@rule[4].dest_port=9100
firewall.@rule[4].proto=tcp
firewall.@rule[4].target=ACCEPT
firewall.@rule[4].name=Allow Printer
firewall.@rule[5]=rule
firewall.@rule[5].target=ACCEPT
firewall.@rule[5].src=lan
firewall.@rule[5].dest=wan
firewall.@rule[5].enabled=0
firewall.@rule[6]=rule
firewall.@rule[6].target=ACCEPT
firewall.@rule[6].src=lan
firewall.@rule[6].dest=wan
firewall.@rule[6].name=internet
firewall.miniupnpd=include
firewall.miniupnpd.type=script
firewall.miniupnpd.path=/usr/share/miniupnpd/firewall.include
firewall.miniupnpd.family=IPv4
firewall.miniupnpd.reload=1
firewall.openvpn_include_file=include
firewall.openvpn_include_file.path=/etc/openvpn.firewall
firewall.openvpn_include_file.reload=1
firewall.redirect_enabled_number_0=redirect
firewall.redirect_enabled_number_0.name=torrent
firewall.redirect_enabled_number_0.src=wan
firewall.redirect_enabled_number_0.dest=lan
firewall.redirect_enabled_number_0.proto=tcp
firewall.redirect_enabled_number_0.src_dport=xxxxx
firewall.redirect_enabled_number_0.dest_ip=192.168.xxx.xx
firewall.redirect_enabled_number_0.dest_port=xxxxx
firewall.redirect_enabled_number_1=redirect
firewall.redirect_enabled_number_1.name=remote
firewall.redirect_enabled_number_1.src=wan
firewall.redirect_enabled_number_1.dest=lan
firewall.redirect_enabled_number_1.proto=tcp
firewall.redirect_enabled_number_1.src_dport=xxxx
firewall.redirect_enabled_number_1.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_1.dest_port=80
firewall.redirect_enabled_number_2=redirect
firewall.redirect_enabled_number_2.name=torrent
firewall.redirect_enabled_number_2.src=wan
firewall.redirect_enabled_number_2.dest=lan
firewall.redirect_enabled_number_2.proto=tcp
firewall.redirect_enabled_number_2.src_dport=xxxxx
firewall.redirect_enabled_number_2.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_2.dest_port=xxxxx
firewall.redirect_enabled_number_3=redirect
firewall.redirect_enabled_number_3.name=nas
firewall.redirect_enabled_number_3.src=wan
firewall.redirect_enabled_number_3.dest=lan
firewall.redirect_enabled_number_3.proto=tcp
firewall.redirect_enabled_number_3.src_dport=xxxx
firewall.redirect_enabled_number_3.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_3.dest_port=xxxx
firewall.redirect_enabled_number_4=redirect
firewall.redirect_enabled_number_4.name=nas_admin
firewall.redirect_enabled_number_4.src=wan
firewall.redirect_enabled_number_4.dest=lan
firewall.redirect_enabled_number_4.proto=tcp
firewall.redirect_enabled_number_4.src_dport=xxxx
firewall.redirect_enabled_number_4.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_4.dest_port=xxxx
firewall.redirect_enabled_number_5=redirect
firewall.redirect_enabled_number_5.name=torrent
firewall.redirect_enabled_number_5.src=wan
firewall.redirect_enabled_number_5.dest=lan
firewall.redirect_enabled_number_5.proto=tcp
firewall.redirect_enabled_number_5.src_dport=xxxxx
firewall.redirect_enabled_number_5.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_5.dest_port=xxxxx
firewall.redirect_enabled_number_6=redirect
firewall.redirect_enabled_number_6.name=printer
firewall.redirect_enabled_number_6.src=wan
firewall.redirect_enabled_number_6.dest=lan
firewall.redirect_enabled_number_6.proto=tcp
firewall.redirect_enabled_number_6.src_dport=9100
firewall.redirect_enabled_number_6.dest_ip=192.168.1xx.xx
firewall.redirect_enabled_number_6.dest_port=9100
Unfortunately, if I try to print something, the printer does not start to print, untill I get into the console and run again:
root@Gargoyle:~# uci set p910nd.@p910nd[0].enabled=1
root@Gargoyle:~# /etc/init.d/p910nd enable
root@Gargoyle:~# /etc/init.d/p910nd start
Print server stays on as long as printer is powered on or reboot the router. After reboot the setting need to be done again.
I'm doing wrong or what to configuring? Thank you and look counsel.
Print server setting TL-WR1043ND
Moderator: Moderators
Re: Print server setting TL-WR1043ND
Nobody can help me?
Re: Print server setting TL-WR1043ND
Sorry I have never attempted to attach a USB printer.
However, I am surprised that you would have to use the cli or manually configure uci to get this to work. The Gargoyle web GUI is intended to "simply work" and handle all of the technical details. I wonder if your tinkering at the command line has upset things.
Could you reset your Gargoyle installation and try again using the web GUI only?
However, I am surprised that you would have to use the cli or manually configure uci to get this to work. The Gargoyle web GUI is intended to "simply work" and handle all of the technical details. I wonder if your tinkering at the command line has upset things.
Could you reset your Gargoyle installation and try again using the web GUI only?
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
Re: Print server setting TL-WR1043ND
Thank you for your answer.
The problem was solved yesterday. After I config firewall rule using uci/cli like:
firewall.@rule[4]=rule
firewall.@rule[4].src=lan
firewall.@rule[4].dest_port=9100
firewall.@rule[4].proto=tcp
firewall.@rule[4].target=ACCEPT
firewall.@rule[4].name=Allow Printer
I put another entry in /etc/config/p910nd:
config p910nd 'cfg1'
option device '/dev/usb/lp0'
option port '0'
option bidirectional '1'
option enabled '1'
and restart p910nd.
I still have the message "No USB printers are currently attached to the router" in System/USB Printer web GUI, but the printer Brother DCP1510 work perfect. Under the Windows, the settings are standard port 9100, connection using "Generic network card", instead "HP jetDirect" settings.
The problem was solved yesterday. After I config firewall rule using uci/cli like:
firewall.@rule[4]=rule
firewall.@rule[4].src=lan
firewall.@rule[4].dest_port=9100
firewall.@rule[4].proto=tcp
firewall.@rule[4].target=ACCEPT
firewall.@rule[4].name=Allow Printer
I put another entry in /etc/config/p910nd:
config p910nd 'cfg1'
option device '/dev/usb/lp0'
option port '0'
option bidirectional '1'
option enabled '1'
and restart p910nd.
I still have the message "No USB printers are currently attached to the router" in System/USB Printer web GUI, but the printer Brother DCP1510 work perfect. Under the Windows, the settings are standard port 9100, connection using "Generic network card", instead "HP jetDirect" settings.
Re: Print server setting TL-WR1043ND
To get the printer to show in the GUI try:lonerider wrote:I still have the message "No USB printers are currently attached to the router" in System/USB Printer web GUI,
uci set p910nd.@p910nd[0].printer_name="Brother DCP1510"
uci commit
OpenWrt/Gargoyle tries to discover and setup printers via bonjour. I am not sure why it is failing in your case. Could you post the contents of your /etc/dnsmasq.conf file (if it exists)
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E
Re: Print server setting TL-WR1043ND
Hello,nworbnhoj wrote:Could you post the contents of your /etc/dnsmasq.conf file (if it exists)
Yes, it exist, but have nothing than comment lines:
# Change the following lines if you want dnsmasq to serve SRV
# records.
# You may add multiple srv-host lines.
# The fields are <name>,<target>,<port>,<priority>,<weight>
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
# Two SRV records for LDAP, each with different priorities
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
# A SRV record indicating that there is no LDAP server for the domain
# example.com
#srv-host=_ldap._tcp.example.com
# The following line shows how to make dnsmasq serve an arbitrary PTR
# record. This is useful for DNS-SD.
# The fields are <name>,<target>
#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
# Change the following lines to enable dnsmasq to serve TXT records.
# These are used for things like SPF and zeroconf.
# The fields are <name>,<text>,<text>...
#Example SPF.
#txt-record=example.com,"v=spf1 a -all"
#Example zeroconf
#txt-record=_http._tcp.example.com,name=value,paper=A4
# Provide an alias for a "local" DNS name. Note that this _only_ works
# for targets which are names from DHCP or /etc/hosts. Give host
# "bert" another name, bertrand
# The fields are <cname>,<target>
#cname=bertand,bert
I'll try to put your example CLI command (
uci set p910nd.@p910nd[0].printer_name="Brother DCP1510"
uci commit), tomorow. Thank you.