Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "curby ." <curby.public@gmail.com>
To: Carsten Rachfahl <cr@raut.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: INPUT chain doesen´t receive packets
Date: Wed, 7 Sep 2005 10:40:15 -0600	[thread overview]
Message-ID: <5d2f3791050907094026f4167f@mail.gmail.com> (raw)
In-Reply-To: <63AFBCCB78FE6A40B65A4E8143344349582F86@hplxr80003.raut.net>

On 9/7/05, Carsten Rachfahl <cr@raut.de> wrote:
> I have problems with iptables and iproute2. In my scenario I want to use a host with a dsl connection on eth0 and a lan connection eth1 for policy based routing. I want to route http traffic generated by the host itself over eth0 and the rest over eth1. To solve the problem I 

Hopefully your situation is simple enough that you don't need to do
special routing.  Can you try to restate what you want to happen to
web traffic going through your firewall?  Does the LAN have access to
the Internet besides the DSL connection?  If not, it might be as
simple as using NAT, and leaving iproute2/ip alone.  Assuming the
firewall machine is routing for the LAN, and its DSL connection on
eth0 is the only way to the Internet, it sounds like you want to use
SNAT/masquerading to let LAN clients out onto the web, and stateful
rules to let replies back in.

If you have your own web server on the LAN and not on the same machine
as the firewall, you'll want to look for packets in the FORWARD chain,
not the INPUT chain.  You might also want to use DNAT to allow the
Internet to access the internal server, and stateful rules to let
replies back out.

I wasn't able to glean what your goals and network configuration is
though, so these suggstions may be way off.

--Curby


      reply	other threads:[~2005-09-07 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07 11:27 INPUT chain doesen´t receive packets Carsten Rachfahl
2005-09-07 16:40 ` curby . [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=5d2f3791050907094026f4167f@mail.gmail.com \
    --to=curby.public@gmail.com \
    --cc=cr@raut.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox