All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matt Parlane" <matt@zevi.net>
To: netfilter@lists.netfilter.org
Subject: Forwarding packets within local network
Date: Tue, 24 Sep 2002 14:03:18 +1200	[thread overview]
Message-ID: <0d3d01c2636e$8d112a60$0200a8c0@bart> (raw)

Hi all...

I am trying to set up iptables to forward all packets on port 80 to an
internal machine - the only difference to the normal DNAT setup is that the
web server is on another internal machine.  Let me explain...

The gateway is at 192.168.0.1.

The webserver is at 192.168.0.2, and is DNATed, so it can be seen from the
outside, and the inside - as per the chapter entitled 'Destination NAT Onto
the Same Network' in the unreliable guides.

I go to www.google.com from my workstation which is 192.168.0.3, and I am
forwarded by iptables through to the internal webserver, and it serves my
request.  One caveat is that I want to be able to specify which IP addresses
are allowed straight out as per normal, and which ones are forwarded to the
internal webserver.

Is this possible?  And if it's not possible using iptables, does anyone know
any other way of doing this?

Regards,

Matt Parlane
Zevi Interactive
matt@zevi.net



                 reply	other threads:[~2002-09-24  2:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='0d3d01c2636e$8d112a60$0200a8c0@bart' \
    --to=matt@zevi.net \
    --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.