I've written a patch for pppoed.c 1.24 that adds the following options:

-c <procs> Maximum number of processes pppoed can run simultaneously.
-m <procs/mac> Same as -c but per MAC address.
-f <file> Format is <mac> [<procs>]\n. <procs> defaults to 1. Overrides -m.
-t <secs> A pppoed child must start ppp in this many seconds or die.

For -m and -f: -1 means no limit, 0 means forbidden.

http://thiago.joi.com.br/andre/pppoed.patch.gz
Feedback is welcome.

What I wanted to do was "-m 0 -f macs -t 10": only allow connections from MAC 
addresses listed in the file "macs" and never run more than one process 
simultaneously for a single MAC address. And pppoed processes that don't 
start ppp in 10 seconds should die.
Is there some way to do the same thing without this patch?

Thank you.
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to