From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: Jonathan Villa <jvilla@e37.net>
Cc: netfilter@lists.netfilter.org
Subject: Re: Allow only certain ip addresses
Date: Thu, 10 Jun 2004 15:11:06 -0400 [thread overview]
Message-ID: <1086894666.2007.189.camel@localhost> (raw)
In-Reply-To: <2169.64.2.245.108.1086889175.squirrel@64.2.245.108>
On Thu, 2004-06-10 at 13:39, Jonathan Villa wrote:
> I have a machine running mysql only.
>
> I want to allow connections on ports 3306, 22, and 80 for a group of ip
> address.
>
> Some will be from the block, others are dispersed.
>
> Will I know how to allow block of ips, and how to allow a single ip, how
> would I combine the 2?
>
> My assumption is this
>
> 1. create an array of the single ip addresses.
> 2. loop throught the array printing an iptables command which will allow
> access on those ports to the loop index.
> 3. hardcode the ip block xx.xxx.xx.0/24
>
> Am I correct so far?
You may find the iprange patch from patch-o-matic helpful if you have
contiguous addresses that do not break evenly into a subnet. If you do
not want to patch, SubnetCreator (http://subnetcreator.sourceforge.net)
will turn the contiguous range into a group of subnets.
--
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net
next prev parent reply other threads:[~2004-06-10 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 17:39 Allow only certain ip addresses Jonathan Villa
2004-06-10 17:49 ` Antony Stone
2004-06-10 19:11 ` John A. Sullivan III [this message]
2004-06-11 4:34 ` ads nat
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=1086894666.2007.189.camel@localhost \
--to=john.sullivan@nexusmgmt.com \
--cc=jvilla@e37.net \
--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