From: Michal Soltys <soltys@ziu.info>
To: cucnews@yahoo.com
Cc: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: is it possible to mix iprange and multiport modules?
Date: Tue, 21 Oct 2008 08:12:50 +0200 [thread overview]
Message-ID: <48FD72E2.3060903@ziu.info> (raw)
In-Reply-To: <219949.10508.qm@web110412.mail.gq1.yahoo.com>
pedro noticioso wrote:
> Hi there friends!
>
> I am managing a 15 node vpn network with well over 500 pcs scattered all over, so I am looking for creative ways to simplify and better control my traffic while replacing the old IT guys 1600 line-and-10 seconds to load firewall script, so I tried a trick that did not seem to actually work:
>
> /sbin/iptables -A INPUT -p tcp \
> -m multiport --source-port 22,53,80,110,443,2525 \
> -m iprange --src-range 192.168.19.25-192.168.19.100 \
> -j ACCEPT
>
> So, am I just dreaming here, or is there a nice trick out there to achieve my goal in an elegant manner?
>
Which version of iptables ? What about the other rules (and INPUT's
default policy).
There was small bug in 1.4.1 not so long ago -
http://marc.info/?l=netfilter-devel&m=121333737332600&w=2 .
Either way, the rule looks fine.
prev parent reply other threads:[~2008-10-21 6:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 20:32 Transfer ipv6 packages over ipv4 iptables gateway to ipv4 ISP's network Elvir Kuric
2008-10-15 20:45 ` Grant Taylor
2008-10-15 20:58 ` Elvir Kuric
2008-10-15 21:23 ` Amos Jeffries
2008-10-16 6:07 ` Elvir Kuric
2008-10-16 7:16 ` Petr Pisar
2008-10-17 17:45 ` Grant Taylor
2008-10-19 15:41 ` Elvir Kuric
2008-10-20 4:04 ` is it possible to mix iprange and multiport modules? pedro noticioso
2008-10-20 8:07 ` Amos Jeffries
2008-10-21 6:12 ` Michal Soltys [this message]
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=48FD72E2.3060903@ziu.info \
--to=soltys@ziu.info \
--cc=cucnews@yahoo.com \
--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 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.