All of lore.kernel.org
 help / color / mirror / Atom feed
* Allow only certain ip addresses
@ 2004-06-10 17:39 Jonathan Villa
  2004-06-10 17:49 ` Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jonathan Villa @ 2004-06-10 17:39 UTC (permalink / raw)
  To: netfilter

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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-11  4:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-06-11  4:34 ` ads nat

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.