PF: dynamic rules

Scott Ullrich sullrich at gmail.com
Tue Feb 14 09:56:39 PST 2006


On 2/14/06, Victor V. Melnichenko <worm at chm.org.ua> wrote:
> I have some problem with PF.
> I have pppoe server based on mpd.
> What i want:
> When client connect to the server some rules (e.g. altq ... priq ...
> etc) must be load and apply to the interface ng0 for example. When
> client disconnected from server this rules must be delete from rule-table.
> In IPFW this things works fine...
>
> Question: how can i do this in PF?

You're best bet is to link into ppp-linkup (generally in
/usr/local/sbin/) which MPD invokes after a session is nailed up.  
You could easily tie in you're custom ALTQ rules with this script.

Hope this helps!

Scott


More information about the freebsd-pf mailing list