Automatic ppp ip address assignment
Dear All FreeRadius 2.1 users, I can run successfully with pptpd and freeradius 2.1 authentication very well. I need to assign ip address to each pptp user manually. However, I can't set up mysql ip pool for pptp user. I have tried this way: http://wiki.freeradius.org/Rlm_sqlippool but it doesn't work. ppp user cannot get ip address automatically. I also comment out main_pool inside the /site-available/default file. This doesn't work neither. I have also tried any possible combinations of other settings but they don't work. Any user would like to post the main setting of a successful automatic ppp ip address assignment through mysql ip pool? Your help is highly appreciated. Your Faithfully, Timmy
Timmy wrote:
However, I can't set up mysql ip pool for pptp user. I have tried this way: http://wiki.freeradius.org/Rlm_sqlippool
but it doesn't work.
See the FAQ for "it doesn't work"
ppp user cannot get ip address automatically. I also comment out main_pool inside the /site-available/default file. This doesn't work neither. I have also tried any possible combinations of other settings but they don't work.
i.e. you tried a bunch of random things. That isn't useful.
Any user would like to post the main setting of a successful automatic ppp ip address assignment through mysql ip pool?
It works if you configure it correctly. So... what did you do? Alan DeKok.
Any user would like to post the main setting of a successful automatic ppp ip address assignment through mysql ip pool? It works if you configure it correctly.
So... what did you do?
Alan DeKok.
Hi Alan, I mainly followed the book Freeradius Beginner's Guide. I can set up most thing to run freeradius with mysql managing, except the mysql ip pool control. I started with Ubuntu 10.04 x64 with its freeradius 2 and mysql packages. This runs very well. To make mysql ip pool works, I only change very basic things: Edit: /etc/freeradius/radiusd.conf Uncomment: $INCLUDE sqlippool.conf Edit sqlippool.conf #$INCLUDE sql/postgresql/ippool.conf $INCLUDE sql/mysql/ippool.conf Add in /etc/freeradius/users: DEFAULT Pool-Name := main_pool Fall-Through = Yes In radius db: INSERT INTO radippool (pool_name, framedipaddress) VALUES ('main_pool', '192.168.2.1'); Edit: /etc/freeradius/sites-available/default accounting { main_pool sqlippool } post-auth { mani_pool sqlippool } Also, in the /modules/ippool file, I keep the ippool main_pool definition uncommented as it is in this package default. The result: freeradius does not assing IP. How do you think, Alan? Which one or both of these to keep in /etc/freeradius/sites-available/default ? main_pool sqlippool
Timmy wrote:
The result: freeradius does not assing IP. How do you think, Alan?
I think you haven't bothered to read the debug output. This is in the FAQ, README, main web page, and daily on this list. Why not look at the debug output. Just... why?
Which one or both of these to keep in /etc/freeradius/sites-available/default ? main_pool sqlippool
It depends on what you want. Configuring FreeRADIUS is *not* about making random changes. It's about understanding what you're doing. Alan DeKok.
participants (2)
-
Alan DeKok -
Timmy