iptable配置黑名单-内网访问封禁外部网址

iptables -I FORWARD -m iprange --src-range 192.168.0.100-192.168.0.149 -m string --string "baidu.com" --algo kmp -j DROP

iptables -I FORWARD -m iprange --src-range 192.168.0.100-192.168.0.149 -m string --string "baidu.com" --algo bm -j DROP

192.168.0.100至192.168.0.149,是指定IP范围

"baidu.com"需要禁止访问的网站

大乔说(QS)我说(I Say) 社会生活,商业乐趣。让我们的活得明明白白。 本站内容仅代表作者个人观点。不构成投资建议。本站文章全部原创,部分文章内有引用或转载补充,都会详细扩引指出,如需转发请注明出处: isher.qsis.cn
ipv6 ready

Notice: Undefined variable: plugins_config in /www/QSIS/files/plugins/captcha/index.php on line 7

Notice: Trying to access array offset on value of type null in /www/QSIS/files/plugins/captcha/index.php on line 7

Notice: Undefined variable: plugins_config in /www/QSIS/files/plugins/copybar/index.php on line 7

Notice: Trying to access array offset on value of type null in /www/QSIS/files/plugins/copybar/index.php on line 7

Notice: Undefined variable: plugins_config in /www/QSIS/files/plugins/darkmode/index.php on line 8

Notice: Trying to access array offset on value of type null in /www/QSIS/files/plugins/darkmode/index.php on line 8

Notice: Undefined variable: plugins_config in /www/QSIS/files/plugins/themecolor/index.php on line 2

Notice: Trying to access array offset on value of type null in /www/QSIS/files/plugins/themecolor/index.php on line 2