IPTables, block ssh brute force attacks

Discussion in 'Server Operation' started by redem, Apr 9, 2008.

  1. redem

    redem New Member

    Hi all...

    how i block the various ssh brute force attacks with iptables?

    Currently i'm using these rules:

    -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
    -A INPUT -p tcp -m tcp --dport 22 -m limit --limit 1/min --limit-burst 3 -j *CORRECT* DROP

    But these don't work :confused: ...



    I have edited a rule, waiting for response :)
  2. chipsafts

    chipsafts New Member

  3. falko

    falko Super Moderator ISPConfig Developer

  4. topdog

    topdog Active Member

  5. redem

    redem New Member

    Thanks guys :)

Share This Page