Skip to contentSkip to conversation

U32 Port Range

LARTC [email protected] 1 participant 1 message Oct 5, 2004

lore
Share & tools
lore
#0 lore raw

Hi all...
How do i set U32 to filter a port range, instead of a single port? In normal use: source port 80 we use: "... match ip sport 80 0xffff ..."
- I know that is something about the 0xffff parameter....

I need to filter ports 1 ~ 1024 to a higher priority class... i tried with IPTABLES MARK and TC FW, but it's not working....

(...)

# iptables -t mangle -A PREROUTING -p tcp -sport 10:1024 -j MARK --set-mark
2
# tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 2 fw classid
1:1
(...)

------------------------------------------
Use o melhor sistema de busca da Internet
Radar UOL - http://www.radaruol.com.br

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