cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
607
Views
0
Helpful
2
Replies

Hey all, can one use iptables to classify packets based on vlan ids?

sonalisakshi
Level 1
Level 1

I have been working with iptables to classify packets based on their dst port but now I am using redirected packets and dst port doesn't look like the best option for classification here so we are shifting towards vlan ids but I couldn't find any reliable rule online for the same. 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

Not sure you are in the right Forum - again you need to more specific and environment what you doing will be helpfull

you can use iptables + tc combination get the outcome you looking to classify packet in Linux. (based on IP address)

Note : i have tried some ages back ebtables (not sure is this exits, check if you can find to use it)

for vlan ID not that i am aware can be done. (until you have any intellegent system in place)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

sonalisakshi
Level 1
Level 1

Just to give some insights on the usage, I am using iptables to mangle the packet headers and set socket priorities with which we are scheduling traffic.

Ex: iptables -t mangle -A POSTROUTING -udp --dport 6767 -j CLASSIFY --set-class 0:6