* -i and -o options for iptables FORWARD chain
@ 2003-12-31 23:36 Gongya Yu
2004-01-02 13:08 ` Antony Stone
2004-01-02 13:30 ` [despammed] " Andreas Kretschmer
0 siblings, 2 replies; 8+ messages in thread
From: Gongya Yu @ 2003-12-31 23:36 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables enabled.
But iptables ignores -i and -o options for FORWARD chain. Wheneneve I use something like -i eth0 or -o eth0, the rule is just ignored.
Any suggestions ?
thanks in advance!!
Gongya Yu
[-- Attachment #2: Type: text/html, Size: 950 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: -i and -o options for iptables FORWARD chain
2003-12-31 23:36 -i and -o options for iptables FORWARD chain Gongya Yu
@ 2004-01-02 13:08 ` Antony Stone
2004-01-02 13:30 ` [despammed] " Andreas Kretschmer
1 sibling, 0 replies; 8+ messages in thread
From: Antony Stone @ 2004-01-02 13:08 UTC (permalink / raw)
To: netfilter
On Wednesday 31 December 2003 11:36 pm, Gongya Yu wrote:
> Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables
> enabled.
>
> But iptables ignores -i and -o options for FORWARD chain. Wheneneve I use
> something like -i eth0 or -o eth0, the rule is just ignored.
>
> Any suggestions ?
I am not a 2.6 expert by any means, so this is just a suggestion: did you
recompile the userspace tools (iptables) to match the new kernel code
(netfilter)?
Antony.
--
My New Year's resolution is not to make any resolutions I can't keep.
I'm wondering whether I've failed already.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [despammed] -i and -o options for iptables FORWARD chain
2003-12-31 23:36 -i and -o options for iptables FORWARD chain Gongya Yu
2004-01-02 13:08 ` Antony Stone
@ 2004-01-02 13:30 ` Andreas Kretschmer
2004-01-02 14:03 ` Antony Stone
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Kretschmer @ 2004-01-02 13:30 UTC (permalink / raw)
To: netfilter
am Wed, dem 31.12.2003, um 15:36:34 -0800 mailte Gongya Yu folgendes:
> Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables enabled.
I'm using iptables on 2.4.x, possible there are differences with 2.6.x.
>
> But iptables ignores -i and -o options for FORWARD chain. Wheneneve I use
> something like -i eth0 or -o eth0, the rule is just ignored.
RTFM!
-i is only for INPUT, FORWARD and PREROUTING
-o is only for FORWARD, OUTPUT and POSTROUTING
You can use -s and -d (Source and Destination-IP).
Andreas
--
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [despammed] -i and -o options for iptables FORWARD chain
2004-01-02 13:30 ` [despammed] " Andreas Kretschmer
@ 2004-01-02 14:03 ` Antony Stone
2004-01-02 14:25 ` Andreas Kretschmer
0 siblings, 1 reply; 8+ messages in thread
From: Antony Stone @ 2004-01-02 14:03 UTC (permalink / raw)
To: netfilter
On Friday 02 January 2004 1:30 pm, Andreas Kretschmer wrote:
> am Wed, dem 31.12.2003, um 15:36:34 -0800 mailte Gongya Yu folgendes:
> > Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables
> > enabled.
>
> I'm using iptables on 2.4.x, possible there are differences with 2.6.x.
>
> > But iptables ignores -i and -o options for FORWARD chain. Wheneneve I use
> > something like -i eth0 or -o eth0, the rule is just ignored.
>
> RTFM!
>
> -i is only for INPUT, FORWARD and PREROUTING
> -o is only for FORWARD, OUTPUT and POSTROUTING
Are you suggesting that -i and -o cannot be used in FORWARD? As far as I can
see the syntax of the rule Gonya posted is perfectly okay.
Antony.
--
Christmas is an opportunity to upgrade to kernel 2.6 while no-one's around to
notice the downtime.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [despammed] -i and -o options for iptables FORWARD chain
2004-01-02 14:03 ` Antony Stone
@ 2004-01-02 14:25 ` Andreas Kretschmer
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Kretschmer @ 2004-01-02 14:25 UTC (permalink / raw)
To: netfilter
am Fri, dem 02.01.2004, um 14:03:02 +0000 mailte Antony Stone folgendes:
> > -i is only for INPUT, FORWARD and PREROUTING
> > -o is only for FORWARD, OUTPUT and POSTROUTING
>
> Are you suggesting that -i and -o cannot be used in FORWARD? As far as I can
> see the syntax of the rule Gonya posted is perfectly okay.
Oh, i'm sorry, parse error by me =:-(
Andreas
--
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [despammed] -i and -o options for iptables FORWARD chain
@ 2004-01-02 15:13 bmcdowell
2004-01-02 15:21 ` Andy Loukes
2004-01-02 16:05 ` Unknown, Alistair Tonner
0 siblings, 2 replies; 8+ messages in thread
From: bmcdowell @ 2004-01-02 15:13 UTC (permalink / raw)
To: netfilter
Actually, couldn't this be just a 2.6.x change? (I never saw the rules go by...) I thought I saw a message go by earlier to that effect. Something about the syntax and needing '--physdev' and '-i' both, or something?
I could search the archives, I guess, but instead I suggest Gonya give that a go.
Bob
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Antony Stone
Sent: Friday, January 02, 2004 8:03 AM
To: netfilter@lists.netfilter.org
Subject: Re: [despammed] -i and -o options for iptables FORWARD chain
On Friday 02 January 2004 1:30 pm, Andreas Kretschmer wrote:
> am Wed, dem 31.12.2003, um 15:36:34 -0800 mailte Gongya Yu folgendes:
> > Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables
> > enabled.
>
> I'm using iptables on 2.4.x, possible there are differences with 2.6.x.
>
> > But iptables ignores -i and -o options for FORWARD chain. Wheneneve I use
> > something like -i eth0 or -o eth0, the rule is just ignored.
>
> RTFM!
>
> -i is only for INPUT, FORWARD and PREROUTING
> -o is only for FORWARD, OUTPUT and POSTROUTING
Are you suggesting that -i and -o cannot be used in FORWARD? As far as I can
see the syntax of the rule Gonya posted is perfectly okay.
Antony.
--
Christmas is an opportunity to upgrade to kernel 2.6 while no-one's around to
notice the downtime.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 8+ messages in thread* RE: [despammed] -i and -o options for iptables FORWARD chain
2004-01-02 15:13 bmcdowell
@ 2004-01-02 15:21 ` Andy Loukes
2004-01-02 16:05 ` Unknown, Alistair Tonner
1 sibling, 0 replies; 8+ messages in thread
From: Andy Loukes @ 2004-01-02 15:21 UTC (permalink / raw)
To: bmcdowell; +Cc: netfilter
On Fri, 2 Jan 2004 bmcdowell@coxhealthplans.com wrote:
> Actually, couldn't this be just a 2.6.x change? (I never saw the rules
> go by...) I thought I saw a message go by earlier to that effect.
> Something about the syntax and needing '--physdev' and '-i' both, or
> something?
>
> I could search the archives, I guess, but instead I suggest Gonya give
> that a go.
No, the physdev stuff is for bridging. -i and -o work the same in 2.6 as
2.4
--
Andy Loukes
http://www.navaho.co.uk Complete Appliance Technology
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [despammed] -i and -o options for iptables FORWARD chain
2004-01-02 15:13 bmcdowell
2004-01-02 15:21 ` Andy Loukes
@ 2004-01-02 16:05 ` Unknown, Alistair Tonner
1 sibling, 0 replies; 8+ messages in thread
From: Unknown, Alistair Tonner @ 2004-01-02 16:05 UTC (permalink / raw)
To: bmcdowell, netfilter
On January 2, 2004 10:13 am, bmcdowell@coxhealthplans.com wrote:
> Actually, couldn't this be just a 2.6.x change? (I never saw the rules go
> by...) I thought I saw a message go by earlier to that effect. Something
> about the syntax and needing '--physdev' and '-i' both, or something?
>
> I could search the archives, I guess, but instead I suggest Gonya give that
> a go.
>
Userspace tools need to be recompiled from 2.4.x kenels to 2.6.0
I got weird results switching. Recompile fixed the problems.
Alistair
>
> Bob
> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Antony Stone
> Sent: Friday, January 02, 2004 8:03 AM
> To: netfilter@lists.netfilter.org
> Subject: Re: [despammed] -i and -o options for iptables FORWARD chain
>
> On Friday 02 January 2004 1:30 pm, Andreas Kretschmer wrote:
> > am Wed, dem 31.12.2003, um 15:36:34 -0800 mailte Gongya Yu folgendes:
> > > Hi, I just updated Linux kernel to 2.6.0 with iptables and ebtables
> > > enabled.
> >
> > I'm using iptables on 2.4.x, possible there are differences with 2.6.x.
> >
> > > But iptables ignores -i and -o options for FORWARD chain. Wheneneve I
> > > use something like -i eth0 or -o eth0, the rule is just ignored.
> >
> > RTFM!
> >
> > -i is only for INPUT, FORWARD and PREROUTING
> > -o is only for FORWARD, OUTPUT and POSTROUTING
>
> Are you suggesting that -i and -o cannot be used in FORWARD? As far as I
> can see the syntax of the rule Gonya posted is perfectly okay.
>
> Antony.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-01-02 16:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-31 23:36 -i and -o options for iptables FORWARD chain Gongya Yu
2004-01-02 13:08 ` Antony Stone
2004-01-02 13:30 ` [despammed] " Andreas Kretschmer
2004-01-02 14:03 ` Antony Stone
2004-01-02 14:25 ` Andreas Kretschmer
-- strict thread matches above, loose matches on Subject: below --
2004-01-02 15:13 bmcdowell
2004-01-02 15:21 ` Andy Loukes
2004-01-02 16:05 ` Unknown, Alistair Tonner
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.