LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2008, 03:31 PM   #1
amandler
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Traffic Control with tc qdiscs and tc filter on VLAN tagged network


I have a Linux bridge on my network that I have been using for monitoring (ntop and pmacct), and would like to add some traffic control. I developed some scripts for this, which work on a test bed, but the filtering is not working on my live system because all the packets are VLAN tagged.

Here's an example of a u32 filter I am trying to use. This is designed to put ftp (port 21) traffic into flow 1:30:

tc filter add dev eth0 parent 1: protocol ip prio 3 u32 match ip sport 21 0xffff flowid 1:30

Is there anything I can do to make this work with VLAN tagged traffic? Do I need to do some sort of offset for the vlan tag? How? Is there another filter type that works with vlans?

Many thanks,
Art
 
Old 10-23-2008, 10:42 AM   #2
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
I don't know but one problem might be a bridge works at layer 2 and qos is at layer 3 in the osi model?

Although it can be done somehow: http://www.zeroshell.net/eng/qos/
 
Old 10-23-2008, 11:02 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well by definition VLAN-tagged traffic should not be visible to any device not a member of that VLAN. Since you're using a bridge instead of a forwarding firewall, your network cards cannot (that I know of) be on the VLAN, and therefor wouldn't be able to inspect the traffic.
 
  


Reply

Tags
bridge, control, tc, traffic, vlan



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help!!! How to del filter for the traffic control? linwenyuan Linux - Networking 0 02-27-2008 09:10 PM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 11:12 AM
postfix: Prevent internel network traffic from using filter exodist Linux - Networking 1 06-26-2006 10:45 PM
Network traffic control manager bucovaina78 Linux - Networking 1 05-24-2005 03:24 PM
network traffic control project a2ps Programming 2 11-17-2003 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration