Re: SEPARATING VOIP AND SURFING

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ricardo Soria wrote:

So, returning to the question that originated this
discussion, how can I diferentiate/separate incoming
and outgoing traffic for the same interface (eth0),
without confusing each other, and without using IMQ
devices if possible ??

My mails don't seem to be getting to/from LARTC - I assume you got my other reply.


I put to mark on MAC - this only works for src MAC with iptables in prerouting or forward eg.

iptables -I PREROUTING -t mangle -m mac --mac-source AA:BB:CC:DD:EE:FF -j MARK --set-mark 123

For dst MAC address you need to use u32 eg.

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u16 0x0800 0xFFFF at -2 match u32 0xCCDDEEFF 0xFFFFFFFF at -12 match u16 0xAABB 0xFFFF at -14 flowid 1:1

Andy.

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux