Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printing from NATed machine to public IP address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pstevenson
n00b
n00b


Joined: 10 Dec 2002
Posts: 49
Location: Portsmouth, UK

PostPosted: Tue Jan 21, 2003 11:38 pm    Post subject: Printing from NATed machine to public IP address Reply with quote

Hi,

I have a home network which is connected to the wider world via an ADSL modem/router. My linux machine has a public IP address, whereas my wife's windows machine is NATed. My machine has a printer attached and working via CUPS, which can serve it using IPP if I understand correctly.

I'd like to be able to print from my wife's machine using IPP (which I think it understands) to the printer on my machine. Any configuration tips?

thanks,

Paul Stevenson
Back to top
View user's profile Send private message
Praxxus
Apprentice
Apprentice


Joined: 26 Nov 2002
Posts: 193
Location: Indiana, US

PostPosted: Wed Jan 22, 2003 7:00 am    Post subject: Reply with quote

Well, first and foremost, you don't want to print to the public IP address, you'll want to print to your Gentoo box's private IP address.

In fact, you should configure CUPS to only listen on the private IP address. Look in the "Network Options" section of /etc/cups/cupsd.conf for a line like:
Code:
 Listen 1.2.3.4

You will, of course, want to replace "1.2.3.4" with your CUPS server's private IP address.
_________________
My glaucoma just got worse!
Back to top
View user's profile Send private message
pstevenson
n00b
n00b


Joined: 10 Dec 2002
Posts: 49
Location: Portsmouth, UK

PostPosted: Wed Jan 22, 2003 7:13 pm    Post subject: Reply with quote

Praxxus wrote:
Well, first and foremost, you don't want to print to the public IP address, you'll want to print to your Gentoo box's private IP address.

In fact, you should configure CUPS to only listen on the private IP address. Look in the "Network Options" section of /etc/cups/cupsd.conf for a line like:
Code:
 Listen 1.2.3.4

You will, of course, want to replace "1.2.3.4" with your CUPS server's private IP address.


At the moment the gentoo box only has a public IP address and CUPS is configured to reject requests from outside the local network - the router deals with passing on packets from the private net and they come to the gentoo box with the IP address of the router.

If I want to also have a local IP address do I have to add another network card, or can I just put an alias in /etc/conf.d/net ?
Back to top
View user's profile Send private message
Praxxus
Apprentice
Apprentice


Joined: 26 Nov 2002
Posts: 193
Location: Indiana, US

PostPosted: Wed Jan 22, 2003 7:20 pm    Post subject: Reply with quote

You should just be able to alias the private IP address.
_________________
My glaucoma just got worse!
Back to top
View user's profile Send private message
pstevenson
n00b
n00b


Joined: 10 Dec 2002
Posts: 49
Location: Portsmouth, UK

PostPosted: Wed Jan 22, 2003 8:10 pm    Post subject: Reply with quote

Praxxus wrote:
You should just be able to alias the private IP address.


Okay. cool

I can connect to the IPP port of my gentoo box now from my wife's win2k machine (via mozilla) and look at the printer list. I've checked that it also can't be seen from outside. So I am probably almost there.

Now the really tricky bit; configuring windows. When I ask it to add a new network printer, it claims that it can add either a samba type printer or an internet printer. Since CUPS serves over IPP I should be able to bypass samba, right? I'd rather not have it running as well if ipp alone will do. I type in the most plausible URL I can http://mybox:631/printers/lp0 -- which is the right URL for looking at the printer in mozilla, but the windows configuration program says there is no printer there. Am I trying to do something that is just not possible. Will win2k talk to cups over IPP?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum