From: Marek Kierdelewicz <marek@piasta.pl>
To: Daniel Scott <djscott@MIT.EDU>
Cc: netfilter@vger.kernel.org
Subject: Re: iptables forwarding packets on the same interface
Date: Fri, 19 Nov 2010 00:24:12 +0100 [thread overview]
Message-ID: <20101119002412.45660216@catus> (raw)
In-Reply-To: <AANLkTinGnb0B74tuXacopfgvdDgGajywGP7zmVRH394_@mail.gmail.com>
Hi,
> -A FORWARD -s 192.168.1.0/24 -d 192.168.10.0/24 -i eth1 -o eth1 -m
> state --state NEW -j ACCEPT
>-A FORWARD -s 192.168.10.0/24 -d 192.168.1.0/24 -i eth1 -o eth1 -m
>state --state NEW -j ACCEPT
I think you're missing forwarding of ESTABLISHED,RELATED between
192.168.1.0/24 and 192.168.10.0/24. Try to change above rules to:
-A FORWARD -s 192.168.1.0/24 -d 192.168.10.0/24 -i eth1 -o eth1 -j ACCEPT
-A FORWARD -s 192.168.10.0/24 -d 192.168.1.0/24 -i eth1 -o eth1 -j ACCEPT
Best regards,
Marek
next prev parent reply other threads:[~2010-11-18 23:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 20:26 iptables forwarding packets on the same interface Daniel Scott
2010-11-18 20:56 ` Marek Kierdelewicz
2010-11-18 21:37 ` Daniel Scott
2010-11-18 23:24 ` Marek Kierdelewicz [this message]
2010-11-18 23:39 ` Daniel Scott
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=20101119002412.45660216@catus \
--to=marek@piasta.pl \
--cc=djscott@MIT.EDU \
--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.