-1

我正在尝试使用 iptables 阻止对具有特定参数的 SSL GET 资源的任何请求,即:https ://domain.com/hello?param=aux

我已经使用以下命令阻止了到端口 80 的流量(我们假设 iptables 规则列表为空):

iptables -I INPUT -p tcp --dport 80 -m string --string "GET /hello?param=aux" --to 70 --algo bm -j DROP

认为 SSL 版本是非常简单的(至少对于像我这样的非专家来说):

iptables -I INPUT -p tcp --dport 443 -m string --string "GET /hello?param=aux" --to 70 --algo bm -j DROP

但是它不起作用。关于我做错了什么的任何想法?提前致谢。

4

1 回答 1

1

它永远不会起作用,因为到 SSL 站点的所有流量都是加密的,包括请求方法和参数。

于 2013-04-25T14:23:26.073 回答