From: "JUSTIN GERRY" <JGERRY@butchers.com>
To: JGERRY@butchers.com, netfilter@lists.netfilter.org
Subject: Re: Trying to setup two ethernet cards with two websites
Date: Thu, 02 Jan 2003 15:25:21 -0500 [thread overview]
Message-ID: <se1459fa.075@butchers.com> (raw)
To streamline the firewall I am writing, can I be safe to assume that:
CLASS_A="10.0.0.0/8"
IF1="eth0"
IF2="eth1"
(For example, I will drop anything claiming to be from a Class A
Private Network on either interface)
iptables -A INPUT -i $IF1 -s $CLASS_A -j DROP
iptables -A INPUT -i $IF2 -s $CLASS_A -j DROP
can be written in one line as:
iptables -A INPUT -s $CLASS_A -j DROP
This way by not specifying the interface (as it can come from either
eth0 or eth1) it will stop completely drop any requests claiming to be
from a class A private network?
Many thanks,
Justin
next reply other threads:[~2003-01-02 20:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-02 20:25 JUSTIN GERRY [this message]
2003-01-02 20:36 ` Trying to setup two ethernet cards with two websites Athanasius
2003-01-02 21:40 ` Rob Sterenborg
2003-01-03 12:23 ` Roy Sigurd Karlsbakk
-- strict thread matches above, loose matches on Subject: below --
2003-01-02 14:49 JUSTIN GERRY
2003-01-02 15:21 ` Joel Newkirk
2003-01-03 12:23 ` Roy Sigurd Karlsbakk
2003-01-03 16:25 ` Joel Newkirk
2002-12-31 16:29 JUSTIN GERRY
2002-12-31 18:49 ` Roy Sigurd Karlsbakk
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=se1459fa.075@butchers.com \
--to=jgerry@butchers.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.