mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
acl: a rule's port may name the service it came through (#665)
A port in a rule's targetportlist may carry a service port after a slash, X-Y/S, or, for any destination, */S: the rule matches only requests that arrived through the service listening on the port S, the port of its proxy -p or socks -p, whatever their destination. The limiters are shared by all the services of a configuration, so this is how a limit is given to the connections of one service alone: connlim 5 60 * * * */1080 denies the sixth concurrent connection of the service on port 1080. The destination port and the service port are both ranges or single ports, a slash with nothing after it is refused, and a rule without a slash is what it always was.
This commit is contained in:
1 parent
a2e400622b
commit
59756eeb62
7 files changed
+144
-14
No files matched your search
@@ -413,6 +413,7 @@ struct ace {
|
||||
struct iplist *src, *dst;
|
||||
struct hostname *dstnames;
|
||||
struct portlist *ports;
|
||||
struct portlist *viaports;
|
||||
struct chain *chains;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user