Replies: 3 comments 17 replies
-
The SET optimization is only work for domain name matching. It is unrelated for IP address matching. IP address matching is a lot faster. All the steps are mandatory, if ACL file only have IP addresses, we have to resolve the domain name to IP addresses and then check if any of them are in the proxy list. |
Beta Was this translation helpful? Give feedback.
-
Hi zonyitoo, I have a similar question about the Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
It means the acl rules in --acl file be for local-dns only, the bypass ip set for local-redir in iptables should be set by another way. Or, the acl rules in --acl file be for local-dns and local-redir both, the bypass ip set for local-redir will be from --acl file, rather than set another bypass ip set in iptables. which one is true? thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
上述日志是rust收到代理请求后的处理逻辑:
我没有统计过,其他用户有没有域名、ip地址分别是用不同的处理方式,而需要在acl中分别设定是byproxy?还是bypass?
虽说现在acl改成了SET方式,这比原先的正则要快不少。但是上面那8步还是有优化空间:实际情况,大多数只要做:A-B-G就可以。当然,其他的步骤也不是毫无用处,毕竟还是存在有需求的用户的。这里可以增加通过acl规则来设定,决定要不要对ip地址进行二次匹配。
这样的优化是否可行?有性能上的提高吗?
Beta Was this translation helpful? Give feedback.
All reactions