08-23-2023 08:39 AM - edited 08-23-2023 09:12 AM
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.
08-23-2023 08:57 AM - edited 08-23-2023 09:01 AM
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)
08-23-2023 09:26 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide