I'm looking for an equivalent for iptables in windows, recently my server has been getting hit by a DDoS and I know how to block it using iptables but not in Windows.
I'm looking to do something like the below, but in windows.
# Size of the udp packets:
iptables -N LENGTH_1062
iptables -I FILTER -j LENGTH_1062
iptables -A LENGTH_1062 -p udp -m udp -m length --length 1062 -j DROP
iptables -A LENGTH_1062 -j RETURN
# TTL
iptables -N TTL_244
iptables -I FILTER -j TTL_244
iptables -A TTL_244 -p udp -m udp -m ttl --ttl-eq 244 -j DROP
iptables -A TTL_244 -j RETURN
the first one detects if the packet size is 1062, if it is, it drops ithe packet.
the second one detects if the TTL is 244, if it is, drops the packet.
– xna May 18 '12 at 08:52