I want to ask how do block spefic packet payload?
14:46:35.837759 IP 145.92.16.14.27017 > x.27030: UDP, length 25
0x0000: 4500 0035 44a4 0000 ee11 53ae 915c 100e E..5D.....S..\..
0x0010: 0587 8d74 6987 6996 0021 0000 7a78 4646 ...ti.i..!..zxFF
0x0020: ffff ff55 4ba1 d522 0043 6f75 6c64 206e ...UK..".Could.n
0x0030: 6f74 206f 70 ot.op
14:46:35.837775 IP 120.79.235.173.27015 > x.27015: UDP, length 25
0x0000: 4500 0035 44a1 0000 ee11 911e 784f ebad E..5D.......xO..
0x0010: 0587 8d74 6987 6996 0021 0000 7a78 4646 ...ti.i..!..zxFF
0x0020: ffff ff55 4ba1 d522 0043 6f75 6c64 206e ...UK..".Could.n
0x0030: 6f74 206f 70 ot.op
It is Possible to block attack by blocking hex-string?
iptables --append INPUT --match string --algo kmp --hex-string '|ff ff ff 55 4b a1 d5 22 00 43 6f 75 6c 64 20 6e|' --jump DROP
Will that work? – user3599148 Aug 16 '15 at 14:28