Skip to contentSkip to conversation

port filtering for UDP packets?

LARTC Q-ha Park 2 participants 2 messages Feb 3, 2004

lore
Share & tools
lore

Q-ha Park

author
#0 lore raw

This is what I did to filter outbound UDP packets with the desination port number 6003 thru HTB queue 1:1.

tc filter add dev eth0 parent 1: protocol ip prio 1 \
u32 match ip dport 6003 0xffff flowid 1:1

However, it only worked for TCP port, not UDP. Does anyone know why this happens and how to solve it?

Your help would be greatly appreciated.. thanks in advance!

Q-ha Park

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

opsi... i dont want u32 filter I need libpcap(tcpdump) expression so that i can watch to which direction these stuff goes from/to which address... et cetera..

|This is what I did to filter outbound UDP packets with the desination
|port number 6003 thru HTB queue 1:1.
|
|tc filter add dev eth0 parent 1: protocol ip prio 1 \
|u32 match ip dport 6003 0xffff flowid 1:1
|
|However, it only worked for TCP port, not UDP. Does anyone know why this
|happens and how to solve it?
|
|Your help would be greatly appreciated.. thanks in advance!
|
|Q-ha Park
|
|
|
|_______________________________________________
|LARTC mailing list / [email protected]
|http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
|

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/