|
|
Change default printer port
I'm sending print jobs to a remote network. The firewall on the remote
network maps ports to specific IP addresses. The trouble is, I have
two printers that use the same default port (9100). I can change the
port on the printer itself but how can I change the port in Unix to
match?
|
|
0
|
|
|
|
Reply
|
lmccluskey
|
7/21/2003 8:02:08 PM |
|
lmccluskey@bcdi.com (Larry) writes:
>
>I'm sending print jobs to a remote network. The firewall on the remote
>network maps ports to specific IP addresses. The trouble is, I have
>two printers that use the same default port (9100). I can change the
>port on the printer itself but how can I change the port in Unix to
>match?
>
If you're using the Solaris "netstandard" printer interface, then
specify the port like this:
lpadmin -p printer-name [other args] -o protocol=tcp -o dest=hostname:9101
If you're using HP's Jetadmin or Jetdirect software, I don't know how
to do it. Check with HP's tech support. The HP software will try to
talk to the printer via SNMP, so it will probably fail in any case.
The remote network does not have a very good firewall configuration,
if it maps port numbers to internal ip addresses. What's to stop
anyone in the world from connecting to the printers and wasting their
paper and toner, or blocking you from getting access?
You should instead be contacting a print server within their network,
and feeding the print jobs to the two printer queues via the BSD print
protocol.
-Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup.
|
|
0
|
|
|
|
Reply
|
gerg
|
7/21/2003 9:57:43 PM
|
|
gerg@panix.com (Greg Andrews) wrote in message news:<bfhnkn$rm3$2@reader1.panix.com>...
> lmccluskey@bcdi.com (Larry) writes:
> >
> >I'm sending print jobs to a remote network. The firewall on the remote
> >network maps ports to specific IP addresses. The trouble is, I have
> >two printers that use the same default port (9100). I can change the
> >port on the printer itself but how can I change the port in Unix to
> >match?
> >
>
> If you're using the Solaris "netstandard" printer interface, then
> specify the port like this:
>
> lpadmin -p printer-name [other args] -o protocol=tcp -o dest=hostname:9101
>
>
> If you're using HP's Jetadmin or Jetdirect software, I don't know how
> to do it. Check with HP's tech support. The HP software will try to
> talk to the printer via SNMP, so it will probably fail in any case.
>
> The remote network does not have a very good firewall configuration,
> if it maps port numbers to internal ip addresses. What's to stop
> anyone in the world from connecting to the printers and wasting their
> paper and toner, or blocking you from getting access?
>
> You should instead be contacting a print server within their network,
> and feeding the print jobs to the two printer queues via the BSD print
> protocol.
>
> -Greg
Greg, Thanks for the information. It should be very helpful.
The remote firewall (a Nokia IP30) allows you to map port numbers to
IP addresses and restrict access to VPN traffic only. Print jobs are
actually sent to the external interface of the firewall and any data
coming through on that port gets redirected to the defined IP address.
They tell me that future firmware releases will deal with NAT better,
we'll see.
Larry
|
|
0
|
|
|
|
Reply
|
lmccluskey
|
7/22/2003 10:53:31 AM
|
|
|
2 Replies
553 Views
(page loaded in 0.046 seconds)
|
|
|
|
|
|
|
|
|