printing to remote ip through firewall

2004-07-22 Thread Antonio Rodriguez
Some times it is necessary to print a document in a printer
behind a firewall. The internal ip of the printer and the outer ip of
the firewall are known. How can this be done?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: printing to remote ip through firewall

2004-07-22 Thread Derrick 'dman' Hudson
On Thu, Jul 22, 2004 at 11:30:39AM -0400, Antonio Rodriguez wrote:
| Some times it is necessary to print a document in a printer
| behind a firewall. The internal ip of the printer and the outer ip of
| the firewall are known. How can this be done?

If you run the firewall, you can use NAT (sometimes called PAT or
port-forwarding) to connect the desired port on the outside address of
the firewall to the printer on the other side.  (eg port 631 if the
printer and client support IPP)

If you have control of a machine inside the firewall, you can start an
ssh session on that machine and use remote port forwarding.  To create
the tunnel 'ssh -R1631:printer:631 other-machine'.  On the remote
machine create a prtiner queue that uses 'ipp://localhost:1631/queue-name'
as the device.  Substitute queue-name for the name and path to the
queue on the print spooler (this depends on the spooler used -- cups
as a server and HP's JetDirect devices are different).   (The
specifics I give assume the remote machine uses CUPS)

If you are outside the firewall and have no control over it or a way
to connect to (and control) a machine inside the firewall then you
cannot connect.  (or you have to ask the network admin to adjust the
firewall to allow your connection)

-D

-- 
Commit to the Lord whatever you do,
and your plans will succeed.
Proverbs 16:3
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital signature