From: Aaron Berg <aberg@travellantech.com>
To: Keller Nicolas <nicolas.keller@slb.de>, netfilter@lists.netfilter.org
Subject: Re: Multiple Source Addresses
Date: Tue, 15 Apr 2003 11:10:57 -0700 [thread overview]
Message-ID: <200304151110.58045.aberg@travellantech.com> (raw)
In-Reply-To: <22FCCF057850DB48B98178E1811374830DA6D9@slra07.slb.de>
Try something like this:
iptables -N allowable
#you should limit which traffic is sent through this chain
iptables -A input -j allowable
#list of IPs to allow
iptables -A allowable -s 192.168.43.1 -j ACCEPT
iptables -A allowable -s 192.168.43.2 -j ACCEPT
#It will only do this rule if it doesn't match any rules before it in the
chain
iptables -A allowable -j LOG
I haven't tested this, but it should do the trick.
On Tuesday 15 April 2003 9:28 am, Keller Nicolas wrote:
> Hi!
>
> I want to log every packet that *doesn't* come from IP1 and IP2 (because
> these two hosts should be the only one that communicate with the
> Firewall). Up to now I couldn't figure out a way to do this, as it is
> NOT possible to include multiple source addresses in one line, like
> this:
>
> iptables -A INPUT -s !192.168.43.1 !192.168.43.2 -j LOG
>
> Anyone can show me a way to get this to work?
>
> Thank you very much!
>
> Nicolas Keller
next prev parent reply other threads:[~2003-04-15 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-15 16:28 Multiple Source Addresses Keller Nicolas
2003-04-15 17:27 ` Martijn Lievaart
2003-04-15 17:39 ` Brad Morgan
2003-04-15 18:10 ` Aaron Berg [this message]
2003-04-28 15:33 ` unsubsrcibe Linux
-- strict thread matches above, loose matches on Subject: below --
2003-04-15 18:07 Multiple Source Addresses Daniel Chemko
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=200304151110.58045.aberg@travellantech.com \
--to=aberg@travellantech.com \
--cc=netfilter@lists.netfilter.org \
--cc=nicolas.keller@slb.de \
/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.