Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Sylvan Andrew - NIDS <sylvan@nids.com.nf>
To: netfilter@vger.kernel.org
Subject: Another way of doing? --state NEW -j DROP
Date: Mon, 03 Nov 2008 14:06:03 +1130	[thread overview]
Message-ID: <1225679763.2479.34.camel@sylv> (raw)



Hello One and All, 

 I am sure this might be an easy answer for someone. Could you please
enlighten me ?

I am using the rule below to drop any inbound connections into my .0.3
Class which by default allows any Outbound connections. Plus if the
connection is already established than those outside connections are ok
as well.

iptables -A INPUT -d 192.168.3.0/24 -m state --state NEW -j DROP

However I am now using a router that doesn't support the -m state
--state NEW rule.(crappy GUI thing) :-( Could someone please tell me another way using
iptables to drop any new inbound connections but allow everything else
outbound and the established connection replys to get back into the .0.3
Class ? What is the most secure/easiest way ?

Many Thanks for your help !

Kind Regards

Sylvan 













             reply	other threads:[~2008-11-03  2:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03  2:36 Sylvan Andrew - NIDS [this message]
2008-11-03  3:00 ` Another way of doing? --state NEW -j DROP Maximilian Wilhelm
2008-11-03  3:21   ` Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2008-11-03  3:55 Sylvan

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=1225679763.2479.34.camel@sylv \
    --to=sylvan@nids.com.nf \
    --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