From: Henrik Nordstrom Subject: Re: Iptables and vlan interfaces Date: Fri, 30 Sep 2005 17:21:07 +0200 (CEST) Message-ID: References: <20050930112129.19898.qmail@focomunicatii.ro> <20050930125427.28160.qmail@focomunicatii.ro> <200509300839.15330.rob0@gmx.co.uk> Mime-Version: 1.0 Return-path: In-Reply-To: <200509300839.15330.rob0@gmx.co.uk> 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" Content-Transfer-Encoding: 7bit To: /dev/rob0 Cc: netfilter@lists.netfilter.org On Fri, 30 Sep 2005, /dev/rob0 wrote: > Hmmm, I had always thought you couldn't use virtual interfaces. > # iptables -vI INPUT -i eth0:101 The above is not a virtual interface like VLAN interfaces are, only a labelled IP address on eth0. /sbin/ip addr show will give you a quite good picture of these things. to make your life saner I recommend unlearning ifconfig and instead learn to use the ip command from iproute. ifconfig only confuses things.. This difference is also seen in netstat -i. Regards Henrik