的防火配置(禁掉某个域名)

时间:2023-01-22 19:53:07
-A INPUT -p tcp --dport 80 -m string --string (自已的域名).com --algo bm -j ACCEPT
-A INPUT -p tcp --dport 80 -m string --string vip.renweiba.com --algo bm -j DROP
-A INPUT -p tcp --dport 80 -m string --string hy.nihenpi.com --algo bm -j DROP
-A INPUT -p tcp --dport 80 -m string --string xin.renweiba.com --algo bm -j DROP

 经测试证明不能用正刚来匹配字符串如:

*.*.com