ipfw tablearg support for setfib

2010-09-30 Thread Paul Joe
Hi, The attached patch supports tablearg options to setfib. With the patch, you can add rules like ipfw add 100 setfib tablearg ip from 'table(1)' to any It help in policy based routing as discussed in this thread. http://docs.freebsd.org/cgi/getmsg.cgi?fetch=124951+0+archive/2009/freebsd-net/2

Re: Extending dummynet/ipfw

2010-09-27 Thread Paul Joe
On Mon, Sep 27, 2010 at 9:25 PM, John Nielsen wrote: > On Sep 27, 2010, at 11:20 AM, Paul Joe wrote: > > > I have attached a patch which allows to do flow classifications in > userland > > (e.g based on url categories, LDAP users) > > and do bandwidth control in ke

Extending dummynet/ipfw

2010-09-27 Thread Paul Joe
Hi, I have attached a patch which allows to do flow classifications in userland (e.g based on url categories, LDAP users) and do bandwidth control in kernel(dummynet). The patch has a) a setsocketopt, to associate a pipe to the socket. b) an ipfw option(sockarg) to redirect flows to correspondi