Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: DNAT'ing print from XP to Brother 2070N
Date: Wed, 27 Aug 2008 11:36:09 -0500	[thread overview]
Message-ID: <48B58279.2030607@riverviewtech.net> (raw)
In-Reply-To: <g92bb5$1uf$1@ger.gmane.org>

On 08/26/08 20:40, sean darcy wrote:
> We're running XP in one office. I'd like to be able to print to a 
> "network ready" Brother 2070N in another office, and in my home.
> 
> I can print to the 2070N over a local network using ipp ( 
> 10.10.11.151:631 ) and lpd ( 10.10.11.151:9100 ).
> 
> In the office I have set up iptables like so:
> 
> $IPT -t nat -A PREROUTING -d 10.10.11.151 -p tcp --dport 631 -j DNAT 
> --to $HOME_ADDRESS:631
> $IPT -A FORWARD -p tcp -m state --state NEW -d $HOME_ADDRESS --dport 631 
> -j ACCEPT
> 
> and set up my home iptables:
> 
> $IPT -t nat -A PREROUTING -i $EXTIF -p tcp --dport 631 -j DNAT --to 
> 10.10.11.151:631
> $IPT -A FORWARD -p tcp --dport 631 -m state --state NEW -d 10.10.11.151 
> -j ACCEPT
> 
> The xp machine is set to use 10.10.11.151:631, raw. I've installed the 
> 2070N driver on XP.
> 
> I've also tried using port 9100.
> 
> But it doesn't work. I realize this is a combination, linux - xp , 
> printing and dnat issue, but I thought I'd start here. Anybody else 
> doing this? Any suggestions of other lists that might be useful?

The combination of Linux and Windows should not be a problem.

What IP address space are you using at each location (office 1, office 
2, and home)?

Are you sure that you want to print across the internet in the open and 
not through a VPN?  This can probably be made to work, but you are 
exposing a lot of your printing to the world as relying on the world not 
filtering things on you.



Grant. . . .

      reply	other threads:[~2008-08-27 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27  1:40 DNAT'ing print from XP to Brother 2070N sean darcy
2008-08-27 16:36 ` Grant Taylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48B58279.2030607@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox