* [LARTC] U32 Port Range
@ 2004-10-05 11:06 gt90bh
0 siblings, 0 replies; 3+ messages in thread
From: gt90bh @ 2004-10-05 11:06 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] U32 Port Range
@ 2004-10-05 14:24 Thilo Schulz
2004-10-06 11:44 ` Thilo Schulz
0 siblings, 1 reply; 3+ messages in thread
From: Thilo Schulz @ 2004-10-05 14:24 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 05 October 2004 13:06, gt90bh@zipmail.com.br wrote:
> - I know that is something about the 0xffff parameter....
I guess it is some kind of bitmask and works similarly to a netmask. If you
only want to categorise traffic from port 1-1024, using "sport 0 0xfbff"
*might* work, though I am not sure about that. Some core QoS developers on
the kernel may give you more insight than I am able to do. But you can still
try it, better than nothing :).
- --
Thilo Schulz
My public PGP key is available at http://home.bawue.de/~arny/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBYq6JZx4hBtWQhl4RAsKvAKDVX5mv6HurtkNCuTqt8RNZg1lUTQCeP5NS
TF7X0Qhn7GkIXhnviZ2rQTw=L6y/
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] U32 Port Range
2004-10-05 14:24 [LARTC] U32 Port Range Thilo Schulz
@ 2004-10-06 11:44 ` Thilo Schulz
0 siblings, 0 replies; 3+ messages in thread
From: Thilo Schulz @ 2004-10-06 11:44 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
oops it's rather "sport 0 0xfc00" than "sport 0 0xfbff" if it worked the way I
think it would.
- --
Thilo Schulz
My public PGP key is available at http://home.bawue.de/~arny/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBY9qtZx4hBtWQhl4RAtvCAJ41eu0Obnx0GjA6g1/krgQ+6ovXCACfZLVL
S0c0r0rvd6zZJSuzjy0S2Kw=XmFZ
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-06 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05 14:24 [LARTC] U32 Port Range Thilo Schulz
2004-10-06 11:44 ` Thilo Schulz
-- strict thread matches above, loose matches on Subject: below --
2004-10-05 11:06 gt90bh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.