Re: Make pf reload ruleset whenever a new file appears/changes

2006-07-18 Thread Lars Hansson
On Tuesday 18 July 2006 19:54, Olivier Mehani wrote: > Maybe you can code a little deamon which, running outside of the chroot, > would wait on a Unix(4) socket(2) to know when the rules have to be > reloaded. The socket entry in the filesystem would lie in the chrooted > tree so that one script ru

Re: Make pf reload ruleset whenever a new file appears/changes

2006-07-18 Thread Olivier Mehani
On Tue, Jul 18, 2006 at 01:37:52PM +0200, Mackan wrote: > >> 4) same php script generates a new ruleset for pf > >> 5) pf detect changes and reload new ruleset > >> Step 1 - 4 is already done. I need help with step 5. > > You know pfctl(8)? > Yes. But how do I make apache/php execute the pfctl pro

Re: Make pf reload ruleset whenever a new file appears/changes

2006-07-18 Thread Mackan
Martin Schrvder wrote: > 2006/7/18, Mackan <[EMAIL PROTECTED]>: >> 4) same php script generates a new ruleset for pf >> 5) pf detect changes and reload new ruleset >> >> Step 1 - 4 is already done. I need help with step 5. > > You know pfctl(8)? Yes. But how do I make apache/php execute the pfctl

Re: Make pf reload ruleset whenever a new file appears/changes

2006-07-18 Thread Martin Schröder
2006/7/18, Mackan <[EMAIL PROTECTED]>: 4) same php script generates a new ruleset for pf 5) pf detect changes and reload new ruleset Step 1 - 4 is already done. I need help with step 5. You know pfctl(8)? Best Martin

Make pf reload ruleset whenever a new file appears/changes

2006-07-18 Thread Mackan
Hi list! (Warning: poor english ahead!) This is what I need to do: 1) a user authenticates and enters my website 2) the user enters one IP-address into a form and submit it. 3) php script receive this address and save it in a file or database. 4) same php script generates a new ruleset for pf 5)