From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Reissner Subject: Re: Iptables and vlan interfaces Date: Fri, 30 Sep 2005 13:34:01 +0200 Message-ID: <433D22A9.1060504@toxicnet.de> References: <20050930112129.19898.qmail@focomunicatii.ro> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050930112129.19898.qmail@focomunicatii.ro> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: sebastian.ionita@focomunicatii.ro Cc: netfilter@lists.netfilter.org 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.