Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "J. Bakshi" <joydeep@infoservices.in>
To: netfilter@vger.kernel.org
Subject: hashtable configuration issue
Date: Tue, 01 Sep 2009 20:21:07 +0530	[thread overview]
Message-ID: <4A9D34DB.4080209@infoservices.in> (raw)

Dear Marek and all,

First of all my thanks to all of you to make me familiar with the great
hashtable module. According to Marek's  suggestion I have a ruleset with
synflood protection along with IP blacklist

````````````````````
# default policy drop ##

# accept related , establish ##


# Set blacklist #
echo "blacklist initialization"
iptables -A INPUT -m recent --name blacklist --rcheck --seconds
$BLACKLIST_INTERVAL  -j DROP

## some other anti nmap rule##

##syncflood protection with IP blacklist ##

iptables -N syn-flood
iptables -A INPUT -i $IFACE -p tcp --syn -j syn-flood
iptables -A INPUT -p tcp --syn  -m hashlimit \
--hashlimit 1/sec --hashlimit-burst 4 --hashlimit-htable-expire 300000 \
--hashlimit-mode srcip --hashlimit-name testlimit -j RETURN

# Drop bad IP and put themin blacklist ############
iptables -A syn-flood -m recent --name blacklist --set -j DROP
iptables -A INPUT -j syn-flood

## my incoming and outgoing rules ##

## DROP other ##
```````````````````````````````````

But this time firewall totally blocks all incoming connection. If I
change the RETURN (above) to ACCEPT then then firewall accept *all*
incoming even the ports are blocked in the firewall !!!   I  am very
confused. Could any one enlighten me ? I missed something or
mis-configuration ?



             reply	other threads:[~2009-09-01 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-01 14:51 J. Bakshi [this message]
2009-09-02 10:47 ` [solved] hashtable configuration issue J. Bakshi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9D34DB.4080209@infoservices.in \
    --to=joydeep@infoservices.in \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox