From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: how can i combine these 2 iprules
Date: Fri, 5 Mar 2004 18:33:16 +0000 [thread overview]
Message-ID: <200403051833.16893.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <3405.128.59.176.161.1078511273.squirrel@sojourn.dyndns.org>
On Friday 05 March 2004 6:27 pm, Technical wrote:
> -A RH-Firewall-1-INPUT ! -s cnnp1.com -j LOG --log-prefix "IPTABLES: "
> -A RH-Firewall-1-INPUT ! -s cnnp2.com -j LOG --log-prefix "IPTABLES: "
iptables -N mychain
iptables -A mychain -s cnnp1.com -j RETURN
iptables -A mychain -s cnnp2.com -j RETURN
iptables -A mychain -j LOG --log-prefix "IPTABLES: "
iptables -A RH-Firewall-1-INPUT -j mychain
Note that it is not recommended to use hostnames in netfilter rules - better
to identify the IP addresses and put them in yourself, to avoid possibly
hidden problems.
Antony.
--
Behind the counter a boy with a shaven head stared vacantly into space,
a dozen spikes of microsoft protruding from the socket behind his ear.
- William Gibson, Neuromancer (1984)
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-03-05 18:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-05 18:27 how can i combine these 2 iprules Technical
2004-03-05 18:33 ` Antony Stone [this message]
2004-03-05 18:53 ` Technical
2004-03-05 19:17 ` Rob Sterenborg
2004-03-05 20:04 ` Technical
2004-03-05 20:24 ` Antony Stone
2004-03-05 23:16 ` Luciano Miguel Ferreira Rocha
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=200403051833.16893.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox