Linux Netfilter discussions
 help / color / mirror / Atom feed
* Iptables and vlan interfaces
@ 2005-09-30 11:21 sebastian.ionita
  2005-09-30 11:34 ` Sascha Reissner
  2005-09-30 12:44 ` Henrik Nordstrom
  0 siblings, 2 replies; 24+ messages in thread
From: sebastian.ionita @ 2005-09-30 11:21 UTC (permalink / raw)
  To: netfilter

Why doesn't iptables works with vlans interfaces? 

iptables -t mangle -A FORWARD -i eth0 -o eth1.11 -j MARK --set-mark 4
Gives me the error:
host/network eth1.11 not found. 

I'm running kernel version 2.4.27. with iptables 1.2.9 

The eth1.11 exists works perfectly. 

Seby, 




^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: Iptables and vlan interfaces
@ 2005-09-30 12:04 Baake, Matthias
  0 siblings, 0 replies; 24+ messages in thread
From: Baake, Matthias @ 2005-09-30 12:04 UTC (permalink / raw)
  To: Marcin Giedz; +Cc: Netfilter (E-Mail)

hello there,

the filtering works in the _filter_ table.
afaik there is no support to route logical devices at least in the nat table!
maybe the same is applied for the mangle table.

greetings 

/matthias

> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of 
> Marcin Giedz
> Sent: Friday, September 30, 2005 1:56 PM
> To: netfilter@lists.netfilter.org
> Subject: Re: Iptables and vlan interfaces
> 
> 
> Dnia piątek, 30 września 2005 13:34, Sascha Reissner napisał:
> > sebastian.ionita@focomunicatii.ro wrote:
> > > Why doesn't iptables works with vlans interfaces?
> > > iptables -t mangle -A FORWARD -i eth0 -o eth1.11 -j MARK 
> --set-mark 4
> > > Gives me the error:
> > > host/network eth1.11 not found.
> > > I'm running kernel version 2.4.27. with iptables 1.2.9
> > > The eth1.11 exists works perfectly.
> > > Seby,
> >
> > eth1.11 is the same physical device as eth1. use eth1 in 
> your rule and
> > you are fine. netfiler does IMHO not support filtering by logical
> > interface.
> 
> It does and it works excellent. 
> 
> here is short example:
> /usr/local/sbin/iptables -A FORWARD -i eth0.119 -p tcp -j 
> ACCEPT -m state 
> --state NEW -m multiport --destination-port $TCP_FORWARD1
> /usr/local/sbin/iptables -A FORWARD -i eth0.119 -p tcp -j 
> ACCEPT -m state 
> --state NEW -m multiport --destination-port $TCP_FORWARD2
> 
> For me it seems like eth1.11 is not present on your system. 
> What do get with 
> "ifconfig"? 
> 
> Marcin
> 
> 

^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: Iptables and vlan interfaces
@ 2005-09-30 12:53 Baake, Matthias
  0 siblings, 0 replies; 24+ messages in thread
From: Baake, Matthias @ 2005-09-30 12:53 UTC (permalink / raw)
  To: Henrik Nordstrom; +Cc: Netfilter (E-Mail)

hm i have to correct my previous post..
i copied the discussed rule and it works fine...
there must be an other mistake maybe something missing in the kern

greets

> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of Henrik
> Nordstrom
> Sent: Friday, September 30, 2005 2:45 PM
> To: sebastian.ionita@focomunicatii.ro
> Cc: netfilter@lists.netfilter.org
> Subject: Re: Iptables and vlan interfaces
> 
> 
> On Fri, 30 Sep 2005 sebastian.ionita@focomunicatii.ro wrote:
> 
> > Why doesn't iptables works with vlans interfaces? 
> > iptables -t mangle -A FORWARD -i eth0 -o eth1.11 -j MARK 
> --set-mark 4
> > Gives me the error:
> > host/network eth1.11 not found.
> 
> Sounds like there may be a bug in your iptables command.
> 
> Are you sure the command line given above is what you tried 
> to use? The 
> error seems to suggest a -s/-d option was used instead of -o.
> 
> Regards
> Henrik
> 
> 


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2005-10-03 12:46 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 11:21 Iptables and vlan interfaces sebastian.ionita
2005-09-30 11:34 ` Sascha Reissner
2005-09-30 11:37   ` Marc Haber
2005-09-30 11:56   ` Marcin Giedz
2005-09-30 12:44 ` Henrik Nordstrom
2005-09-30 12:54   ` sebastian.ionita
2005-09-30 13:39     ` /dev/rob0
2005-09-30 13:41       ` Marc Haber
2005-09-30 13:55         ` /dev/rob0
2005-09-30 14:14           ` Marc Haber
2005-09-30 15:21       ` Henrik Nordstrom
2005-10-03  6:48         ` Aseem Rastogi
2005-10-03  7:44           ` Marc Haber
2005-10-03  8:55             ` Aseem Rastogi
2005-10-03  8:59               ` Marc Haber
2005-10-03  9:16           ` Henrik Nordstrom
2005-10-03  9:24             ` Marc Haber
2005-10-03 12:46               ` Henrik Nordstrom
2005-10-03  9:27             ` Aseem Rastogi
2005-10-03 10:05             ` Aseem Rastogi
2005-10-03 10:02               ` Marc Haber
2005-10-03 12:18               ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2005-09-30 12:04 Baake, Matthias
2005-09-30 12:53 Baake, Matthias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox