Re: Allow only certain ip addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since you have mysql on the machine.
Create a mysql table containing fields 1) Name of
user, 2) Ip address, 3) Port no. on which he is
allowed and 4)yes/ne key.
Write a php (Or any) script which will generate
required iptables rule and will insert same in
iptables. 
Write another php(or any) Form with which you can
motitor group or single as required.

Hope I have understood your problem properly.
Thanks


--- Jonathan Villa <jvilla@xxxxxxx> 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?
> 
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux