linkupmylife
2017-06-16 21:10:50 +08:00
iptables -t mangle -A PREROUTING -i pppoe-wan -p udp --sport 53 -m u32 --u32 "0x00000016&0x0000ffff@0x00000010=0x00000000" -j DROP
iptables -t mangle -A PREROUTING -i pppoe-wan -p udp --sport 53 -m u32 --u32 "0x00000016&0x0000ffff@0x00000004=0x00000000,0x02000002,0x20010000" -j DROP
iptables -t mangle -A PREROUTING -i pppoe-wan -p udp --sport 53 -m u32 --u32 "0x00000016&0x0000ffff@0x00000010=0x0807c62d,0x1759053c,0x253d369e,0x2e52ae44,0x31027b38,0x364c8701,0x3b1803ad,0x4d04075c,0x4e10310f,0x5d2e0859" -j DROP
iptables -t mangle -A PREROUTING -i pppoe-wan -p udp --sport 53 -m u32 --u32 "0x00000016&0x0000ffff@0x00000010=0x76053106,0x9f6a794b,0xbc050460,0xbda31105,0xc504040c,0xcab50755,0xcb620741,0xf3b9bb27,0xf9812e30,0xfd9d0ea5" -j DROP
先配上防火墙规则,然后转发 8.8.8.8 即可。