Closed jkroonza closed 2 years ago
After inspection of the code base this is going to be non-trivial, as such, I recommend that if you need this, delegate to pppd by using -R 0.0.0.0, properly setting -N (with delegation you can in theory use a larger value than your pool, but obviously don't be stupid) and then using some other mechanism (radius, or some pool daemon) to assign IP addresses. Literally this allows ANY other mechanism supported by pppd to assign IPs, even {pap,chap}-secrets.
I agree; the server IP pool is really for small or test environments. A production environment should use RADIUS to assign IPs rather than leaving it to pppoe-server.
Currently the -p argument takes a file, which gets loaded once-off during startup, there are two possible strategies that can be followed for dynamic reload:
Both strategies to me seems sensible the former is probably a safer option as it requires explicit action from the administrator to make things effective.
Just looking at the code, it looks like:
Given the above, it may just be simpler to implement ip address delegation (#8), and rely on an ip pool daemon / radius rather than implement this.