Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    prevent postfix fro flood attack

    How can I prevent my postfix server from receiving hundreds of mails when each of with is the same? I know that it can be done by using iptables with something like this:
    iptables -N syn-flood
    iptables -A INPUT -p tcp --syn -j syn-flood
    iptables -A syn-flood -m limit --limit 1/min --limit-burst 4 -j RETURN
    iptables -A syn-flood -m limit --limit 1/min --limit-burst 4 -j LOG --log-level debug --log-prefix "SYN-FLOOD: "
    iptables -A syn-flood -j DROP
    iptables -A INPUT -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -A OUTPUT -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
    but it's only part of solution because it only limit number of messages to 5 per minute.
    The best solution would be that, when I could block particular email or IP address

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts