All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: services for predetermined IP addresses
Date: Fri, 15 Oct 2004 16:28:58 -0400	[thread overview]
Message-ID: <20041015202858.GA8079@bender.817west.com> (raw)
In-Reply-To: <20041015201413.71441.qmail@web21527.mail.yahoo.com>

On Fri, Oct 15, 2004 at 01:14:13PM -0700, kate wrote:
> so the drop-all would be..?
> 
> iptables -A INPUT -p TCP -i eth0 -s 0/0 -j DROP
> 
> or did I just invent my own thing here?
> tia
> Kate

well--the standard way would be to set the policy of the built-in chain
to DROP; i.e.,

  iptables -P INPUT DROP

the same can be achieved by making the last rule in the chain a drop
rule, like

  iptables -A INPUT -j DROP

but that gets messy if you want to append rules "on the fly" so the
policy method is preferred.

-j

-- 
Jason Opperisano <opie@817west.com>


  reply	other threads:[~2004-10-15 20:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 19:41 services for predetermined IP addresses kate
2004-10-15 20:01 ` Jason Opperisano
2004-10-15 20:14   ` kate
2004-10-15 20:28     ` Jason Opperisano [this message]
2004-10-15 20:40       ` kate
2004-10-15 21:03         ` Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2004-10-15 20:25 Daniel Chemko
2004-10-16 17:52 ` Jose Maria Lopez

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=20041015202858.GA8079@bender.817west.com \
    --to=opie@817west.com \
    --cc=netfilter@lists.netfilter.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 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.