Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Fabian Hartmann <realdeal@realdealz.ch>
To: netfilter@lists.netfilter.org
Cc: Pierre Gillet <gpg__gpg@hotmail.com>
Subject: Re: problem with forward/nat
Date: Sun,  7 Mar 2004 19:24:00 +0100	[thread overview]
Message-ID: <1078683840.404b68c0641ac@realdealz.ch> (raw)
In-Reply-To: <BAY1-F168WzqJX7rVGS00004a39@hotmail.com>

> hello,
>
Hi Pierre

> #forward
> 
> iptables -A FORWARD -s 192.168.1.0/24 -j ACCEPT -o eth0

The rule above won't work! you must set the -o flag before you set the -j <TARGET>
i. e. iptables -A FORWARD -o eth0 -s 192.168.1.0/24 -j ACCEPT

Otherwise the rule won't be accepted by iptables and you have no rule that
accepts  forwarded traffic when the default policy for the FORWARD chain is set
to DROP.

---
Fabian Hartmann

realdeal@realdealz.ch
www.realdealz.ch


  parent reply	other threads:[~2004-03-07 18:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-07  3:13 problem with forward/nat Pierre Gillet
2004-03-07  9:26 ` Antony Stone
2004-03-07  9:46   ` Antony Stone
2004-03-07 14:47 ` Brad Morgan
2004-03-07 15:03   ` Antony Stone
2004-03-07 15:57     ` Brad Morgan
2004-03-07 18:24 ` Fabian Hartmann [this message]
2004-03-07 18:37   ` Antony Stone

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=1078683840.404b68c0641ac@realdealz.ch \
    --to=realdeal@realdealz.ch \
    --cc=gpg__gpg@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox