Printing through firewall
Hi,
I have been examining the possibility of allowing some external hosts (red-hat 6.2 with lpd)to print to some of our internal printers (HP-JetDirect) through my firewall in company which firewall machine is red-hat 7.2 using iptables . Anyone knows which ports need to be open?? I tried open 515 only with NAT in iptables , it 's not work
Thanks
Dick
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Quoted 5 lines · Dick Ah
Hi,
I have been examining the possibility of allowing some external hosts (red-hat 6.2 with lpd)to print to some of our internal printers (HP-JetDirect) through my firewall in company which firewall machine is red-hat 7.2 using iptables . Anyone knows which ports need to be open??
I don't know, but here's how to find out:
Put a rule near the top of your FORWARD chain:
iptables -I FORWARD -s 11.22.33.44 -d 22.33.44.55 -j LOG --log-prefix=printing
where 11.22.33.44 is the IP address of the external host trying to print, and 22.33.44.55 is the IP address of the printer.
Then try to print, and look at the log file to see what got sent between the machines.
If you want to, you can always put a similar rule with the IP addresses reversed, to see what comes back from the printer to the host, but I doubt that you need that.
Once you've seen what sort of protocol (TCP or UDP hopefully) and what port numbers are being used, you should easily be able to create a rule to allow the communication.
Antony.
Quoted 11 lines · Antony Stone
Quoted 7 lines · Dick Ah
Hi,
I have been examining the possibility of allowing some external hosts (red-hat 6.2 with lpd)to print to some of our internal printers (HP-JetDirect) through my firewall in company which firewall machine is red-hat 7.2 using iptables . Anyone knows which ports need to be open??
Depends on the printer / printing system
What about using cups on the firewall and ipp (port 631). Cups can then see the print queues on other machines or network printers.
Signature · 4 lines
----------------------------------------------------------------------- David Hawke Ph: +64-9-624 2242 mailto:[email protected] (Home) Fax: +64-9-624 2236 mailto:[email protected] (Work) Mob: 0-21-995 773