All of lore.kernel.org
 help / color / mirror / Atom feed
* --match recent
@ 2007-06-11  9:23 olivierk
  2007-06-11 14:00 ` Grant Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: olivierk @ 2007-06-11  9:23 UTC (permalink / raw)
  To: netfilter

Hello, List!

I am trying to use the 'recent' module on an otherwise working
installation.

(trying to prevent lots of logs from brute force ssh attancks)

I am doing this:

$IPT --table filter --append FORWARD \
    --destination $DMZ \
    --in-interface $EXT_PPP_IF \
    --out-interface $DMZ_IF \
    --protocol tcp \
    --destination-port $SSH_PORT \
    --match recent \
      --name sbfa \
      --rcheck \
      --hitcount 5 \
      --seconds 60 \
    --jump ld && echo OK

$IPT --table filter --append FORWARD \
    --destination $DMZ \
    --in-interface $EXT_PPP_IF \
    --out-interface $DMZ_IF \
    --protocol tcp \
    --destination-port $SSH_PORT \
    --match state \
      --state NEW \
    --match recent \
      --name sbfa \
      --set \
    --jump la && echo OK

So syntax seems to be... OK ;-), but I can't log in from the
outside.

Is there something obvious I am missing ? (I guess there is ;-)




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-11 18:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11  9:23 --match recent olivierk
2007-06-11 14:00 ` Grant Taylor
2007-06-11 18:12   ` Olivier
2007-06-11 18:28     ` Grant Taylor
2007-06-11 18:51       ` Olivier

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.