![](/img/trans.png)
[英]How to tell another thread that one thread is within recv() call *now*
[英]how to tell if iptables are now blocking a url
我正在使用ubuntu,并已使用iptables阻止了到一些ip的传出连接。 我如何判断是否尝试违反此规则(例如某个进程正在尝试访问此IP)。 有某种事件/回调机制吗? 有没有我可以追踪的记录?
iptables -L -v
将显示您当前的iptables配置,以及与每个规则匹配的数据包和字节计数器。
或者,您可以在iptables中插入新规则,该规则将记录与某个规则匹配的所有数据包: http : //www.thegeekstuff.com/2012/08/iptables-log-packets/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.