All of lore.kernel.org
 help / color / mirror / Atom feed
* What is wrong with this chain
@ 2003-01-06 12:54 ITM CS Ruslan O. Nesterov
  0 siblings, 0 replies; only message in thread
From: ITM CS Ruslan O. Nesterov @ 2003-01-06 12:54 UTC (permalink / raw)
  To: netfilter

Hello List,
   I want to drop portscans and DOS attacks. I've found two chains on
   the internet. But after executing them my connection drops and no
   data passes firewall. Anyone can tell me where i'm wrong?
   
# Log and drop portscans:
echo -n "SCAN "
$IPTABLES -A SCAN -m limit --limit 30/m -j LOG --log-prefix "PORTSCAN " --log-ip-options --log-tcp-options --log-level 1
$IPTABLES -A SCAN -j DROP

# Log and drop DOS attacks:
echo -n "DOS "
$IPTABLES -A DOS -p tcp --syn -m limit -j LOG --log-prefix "SYN Flood "
$IPTABLES -A DOS -p icmp -m limit -j LOG --log-prefix "PING Flood "
$IPTABLES -A DOS -j DROP

-- 
Best regards,
 ITM                          mailto:ruslan@complexsystem.ru




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-06 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-06 12:54 What is wrong with this chain ITM CS Ruslan O. Nesterov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.