Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2006 14:57:14 +0300
From:      vladone <vladone@spaingsm.com>
To:        ipfw@freebsd.org
Subject:   Re: rule to accept lists of ip's
Message-ID:  <1381159773.20060525145714@spaingsm.com>
In-Reply-To: <006c01c67f88$048b36b0$0101a8c0@cristian2aebca>
References:  <006c01c67f88$048b36b0$0101a8c0@cristian2aebca>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello mufalani,

Thursday, May 25, 2006, 2:15:58 AM, you wrote:

> Hi all,

>   I would like to create ipfw rule to allow the lists of valid ip's to access my site.

> for example :

> allow access to addresses 200.200.200.1 (or hostname1) , 200.200.200.2  (or hostname2)

> for my site under ip 200.200.200.3 

> and deny all world.


> This is possible?  

> How to sintax of rule?

> Att,

> Rodrigo Mufalani


> _______________________________________________
> freebsd-ipfw@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to
> "freebsd-ipfw-unsubscribe@freebsd.org"

Use table option like this:
ipfw table my_access add 200.200.200.1
ipfw table my_access add 200.200.200.2
ipfw add 100 allow ip from  "table(my_access)" to me
ipfw add 200 deny ip from any to me

-- 
Best regards,
 vladone                            mailto:vladone@spaingsm.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1381159773.20060525145714>