Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm looking for a SIMPLE solution for printer sharing. I have an HP printer attached to my Linux host (prints fine from there). I want my XP box to be able to use this printer as well. I can ping my XP box from my Linux box (and vice versa), and the XP box has the HP print driver installed.
When I go into my XP box and try to add a printer, I click "A network printer or a printer attached to another computer", then "Connetc to a printer on the Internet or on a home office network" and enter my printer as follows:
I also tried it without port 631. Either way, I get an error message saying "Windows cannot connect to the printer. Either the printer name was typed incorrectly or the specified printer has lost its connection to the server.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I would firewall port 631 closed to outside. Turn off the linux firewall if there is one and try printing again. Best thing is buy an ethernet to USB print server.
Brian, can you explain a little more about what you meant by "I would firewall port 631 closed to outside." Not sure I follow you there. I know port 631 is for IPP, but wasn't clear on what you're suggesting.
I will disable the FW tonight and post the results here.
Well, the FW was definitely part of the issue. I flushed it out (sudo iptables -F), then rebuilt it only allowing TCP, UDP and my local network out. After doing that, I was able to add the printer. I then reverted to my old iptables and rearranged one line (in the OUTPUT section below, I swapped the two OUTPUT statements, so that first it would allow all NEW traffic from the 192.168.2.0/24 network, then all RELATED,ESTABLISHED. After doing that, I could still add my printer. HOWEVER, now every time I try to print something from Notepad (as a test), the application hangs and an error message pops up saying "Notepad has encountered a problem and needs to close....". I tried this on both my virtual XP box (running in Virtual Box), as well as standalone desktop running just XP. Any thoughts as to why it's generating this message when trying to print?
Quote:
:OUTBOUND - [0:0]
-A INPUT -i l0 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -m state --state NEW -j ACCEPT
-A INPUT -j DROP
-A OUTPUT -s 192.168.2.0/24 -m state --state NEW -j ACCEPT
-A OUTPUT -s 192.168.2.0/24 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -j DROP
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.