One thing I missed, sorry about that!: require_once("config.inc"); $alias = array(); $alias['name'] = "My new alias"; $alias['descr'] = "My known spammer blocks"; $alias['address'] = "10.0.0.0/24 10.0.0.1/24 10.0.0.2/24 10.0.0.3/24"; $a_aliases[] =$alias; write_config();
On 10/28/05, Scott Ullrich <[EMAIL PROTECTED]> wrote: > Sure there is a way via php. You could do something like: > > require_once("config.inc"); > > $alias = array(); > $alias['name'] = "My new alias"; > $alias['descr'] = "My known spammer blocks"; > $alias['address'] = "10.0.0.0/24 10.0.0.1/24 10.0.0.2/24 10.0.0.3/24"; > write_config(); > > This may be a good idea down the road to present a <textarea> region > to the user and translate all of the c/r lines into spaces and run the > above against it. Could serve useful for people wanting to import > their ip lists, etc. > > Hope this is useful! > > Scott > > > On 10/28/05, Forrest Aldrich <[EMAIL PROTECTED]> wrote: > > Might there be a creative way to do this... perhaps via a php/xml process. > > As an "idea" for future consideration. To interface/interact with PF > > Tables... I'm sure someone must have a PHP class that knows PF out there. > > I can do some hunting. > > > > Thank you. > > > > > > > > > > Scott Ullrich wrote: > > We have aliases which you can populate from the web interface but > > there is no automated method. > > > > Scott > > > > > > On 10/28/05, Forrest Aldrich <[EMAIL PROTECTED]> wrote: > > > > > > I have some long blacklists that I maintain. Some of them are populated > > with botnet /24's. > > > > I presume PFSense has the ability to maintain custom tables/rules. It > > would be nice to visualize them as well (via the web), perhaps allowing > > editing that way as an option. > > > > From the shell, I'd like to pipe the /24's I want to block (or /32's) > > and add it to the table(s). I believe there is a way with PF to do this. > > > > Anyone work with a similar scenario? > > > > > > Thanks. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]