All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: routing all HTTP requests to my own web server
Date: Fri, 17 Oct 2008 12:57:50 -0500	[thread overview]
Message-ID: <48F8D21E.9050601@riverviewtech.net> (raw)
In-Reply-To: <a0a0d59c0810171040s3646c212g150d7691e6d92f4b@mail.gmail.com>

On 10/17/08 12:40, Jeremy Pullicino wrote:
> After consulting with the docs and online tutorials I came up with 
> the command below:
> 
> iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT 
> 192.168.11.100
> 
> Is this the correct way to do it?

That is the first part of it.  You will also need to SNAT the traffic.

> Any advice will be really appreciated.

Look through the archive for this mailing list, or better search it, for 
what I refer to as the "TCP Triangle".

I think the most recent thread that this was discussed had a subject of 
"Different kind of transparent proxy".

Also, you may find Jan Engelhardt's TCP Triangle image explains it well.

    http://jengelh.hopto.org/images/dnat-mistake.png



Grant. . . .

  reply	other threads:[~2008-10-17 17:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 17:40 routing all HTTP requests to my own web server Jeremy Pullicino
2008-10-17 17:57 ` Grant Taylor [this message]
2008-10-17 18:29   ` Jeremy Pullicino
2008-10-17 18:32     ` Grant Taylor

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=48F8D21E.9050601@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 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.