I need to match the two bytes four from the end of the UDP payload and check them against 0x001c. This would be easy if the UDP payload didn't have a variable length. How do I get the length of the UDP payload and jump to a byte relative to the END of the payload?
iptables -t raw -A OUTPUT -p udp --dport 53 -m u32 --u32 "$foo" -j AAAA
I'd like to know what to put in $foo
so that it matches outgoing AAAA queries and jumps to iptables target AAAA
.