All of lore.kernel.org
 help / color / mirror / Atom feed
From: Payal Rathod <payal-netfilter@scriptkitchen.com>
To: "Gary W. Smith" <gary@primeexalia.com>
Cc: Netfilter ML <netfilter@lists.netfilter.org>
Subject: Re: dnatting
Date: Tue, 12 Jul 2005 03:34:07 -0400	[thread overview]
Message-ID: <20050712073407.GA30567@tranquility.scriptkitchen.com> (raw)
In-Reply-To: <57F9959B46E0FA4D8BA88AEDFBE58290742C@pxtbenexd01.pxt.primeexalia.com>

On Mon, Jul 11, 2005 at 12:09:44PM -0700, Gary W. Smith wrote:
> Payal, 
> 
> You need to add a second simple entry:
[...]

Thanks this solved it. Thanks again.
Now I am curious why Jason didn't suggest this.

With warm regards,
-Payal

> 
> Look at the entries below.  I'm mapping an entire IP but this would be
> simple to just to a single port.  The second POSTROUTING line is what
> made everything work for my typical firewalls.
> 
> # Completed on Mon Jul 11 10:58:27 2005
> # Generated by iptables-save v1.2.11 on Mon Jul 11 10:58:27 2005
> *nat
> :PREROUTING ACCEPT [2547:176804]
> :POSTROUTING ACCEPT [633:40896]
> :OUTPUT ACCEPT [40:4518]
> -A PREROUTING -d 81.45.25.50 -j DNAT --to-destination 10.94.16.50 
> 
> -A POSTROUTING -s 10.94.16.50 -o eth0 -j SNAT --to-source 81.45.25.50 
> -A POSTROUTING -s 10.94.16.50 -d 10.94.16.0/255.255.255.0 -j SNAT
> --to-source 81.45.25.50 
> 
> -A POSTROUTING -o eth0 -p ! ipv6-crypt -j SNAT --to-source 81.45.25.50
> -A OUTPUT -d 81.45.25.50 -j DNAT --to-destination 10.94.16.50 
> COMMIT
> # Completed on Mon Jul 11 10:58:27 2005
> 
> 
> > -----Original Message-----
> > From: netfilter-bounces@lists.netfilter.org [mailto:netfilter-
> > bounces@lists.netfilter.org] On Behalf Of Payal Rathod
> > Sent: Monday, July 11, 2005 8:19 AM
> > To: Netfilter ML
> > Subject: dnatting
> > 
> > Hi,
> > I have a rule on my friend's broadband connection to redirect traffic
> > from outside to an internal machine like,
> > 
> > iptables -A PREROUTING -d 1.2.3.4 -p tcp -m tcp --dport 80 -j DNAT  \
> > --to-destination 192.168.10.10:80
> > 
> > But she complained that people from inside the network cannot do
> > http://1.2.3.4 in their browser and see the site. Is she correct?
> > What is wrong with my rule because I can see the site from outside?
> > 
> > Thanks in advance.
> > With warm regards,
> > -Payal
> > 
> > 
> 


  reply	other threads:[~2005-07-12  7:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 19:09 dnatting Gary W. Smith
2005-07-12  7:34 ` Payal Rathod [this message]
2005-07-12 11:59   ` dnatting Jason Opperisano
2005-07-12 12:50     ` dnatting Payal Rathod
2005-07-12 21:03       ` dnatting Steven M Campbell
  -- strict thread matches above, loose matches on Subject: below --
2005-07-13 16:28 dnatting Gary W. Smith
2005-07-13 16:40 ` dnatting Steven M Campbell
2005-07-12 23:19 dnatting Gary W. Smith
2005-07-13 10:39 ` dnatting Jan Engelhardt
2005-07-13 21:19   ` dnatting R. DuFresne
2005-07-13 14:50 ` dnatting Steven M Campbell
2005-07-13 16:33   ` dnatting Donald Murray
2005-07-13 16:39     ` dnatting Steven M Campbell
2005-07-12 14:05 dnatting Gary W. Smith
2005-07-11 15:18 dnatting Payal Rathod
2005-07-11 15:20 ` dnatting Jan Engelhardt
2005-07-11 18:21   ` dnatting Payal Rathod
2005-07-11 18:38   ` dnatting /dev/rob0
2005-07-11 18:42     ` dnatting Jan Engelhardt
2005-07-11 15:24 ` dnatting Scott
2005-07-11 18:45 ` dnatting Jason Opperisano
2005-07-11 18:54   ` dnatting Jan Engelhardt
2005-07-13  3:21   ` dnatting Donald Murray
2005-07-13  4:48     ` dnatting Jason Opperisano
2005-07-14 15:42 ` dnatting curby .
2005-07-14 15:49   ` dnatting curby .

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=20050712073407.GA30567@tranquility.scriptkitchen.com \
    --to=payal-netfilter@scriptkitchen.com \
    --cc=gary@primeexalia.com \
    --cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.