老方法ˋ了,跟幹掉聯通的那套方法ˋ一模一樣。 已知 OpenWRT 相關的 firmware 可用,在廣東惠州電信實測過有效果。 (asuswrt-padavan 應該是用不了 因為缺少 string 模塊)
iptables -I INPUT -m string --string "Location: http://101.110.118" --algo bm -j DROP
iptables -I INPUT -m string --string "Location: http://101.96.10" --algo bm -j DROP
iptables -I INPUT -m string --string "Location: http://101.96.8" --algo bm -j DROP
iptables -I FORWARD -m string --string "Location: http://101.110.118" --algo bm -j DROP
iptables -I FORWARD -m string --string "Location: http://101.96.10" --algo bm -j DROP
iptables -I FORWARD -m string --string "Location: http://101.96.8" --algo bm -j DROP
題外話: 電信緩存服務器的取源 IP 都在 AS134755 如果對方服務器 BAN 掉 AS134755 的 IP 那麼會非常有趣...