From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Squid: support for setting classids based on src/user
Date: Thu, 31 Jul 2003 01:48:36 +0000 [thread overview]
Message-ID: <marc-lartc-105961612714812@msgid-missing> (raw)
I just hacked a patch for squid 2.5-stable3 for setting classids for
connections based on the requesting src/user. The classids are set using
the SO_PRIORITY socket option (skb->priority field). Classification based
on this field needs support from the qdisc but iirc all classful qdiscs
support this.
Example:
Place all requests from 10.0.0.0/8 in class 10:100. No filters need to
be set up.
---------
acl special_service_net src 10.0.0.0/255.255.255.0
tcp_outgoing_priority 10:100 special_service_net
---------
The patch is available at http://trash.net/~kaber
Patrick
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2003-07-31 1:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-105961612714812@msgid-missing \
--to=kaber@trash.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox