Freeradius with AMQP module
- Clone repository in your project directory
git clone git@github.com:Nextpertise/freeradius-amqp.git
cd freeradius-amqp
- Build Docker image (optional)
cd build
./build.sh
- Build consumer (optional, for testing only)
cd data/python
./build.sh
- Start the whole shebang:
docker-compose up -d
# Set up exchange/queue
docker exec -it app /app/appinit.py
# Start consumer
docker exec -it app /app/worker.py
- Check radius logs
docker logs -f freeradius
- Execute radius request:
docker exec -it freeradius /etc/freeradius/test-radius.sh
- Stop?
docker-compose down
# Rabbitmq
docker exec -it rabbitmq rabbitmqctl list_queues
docker exec -it rabbitmq rabbitmqctl list_queues --vhost "/"
# Single test
echo "User-Name=nextpertise,User-Password=password,Framed-Protocol=PPP,Calling-Station-Id=2408ZE10" | radperf -c 10 localhost:1812 auth testing123
# Radperf (not included)
docker exec -it freeradius bash -c 'echo "User-Name=nextpertise,User-Password=password,Framed-Protocol=PPP,Calling-Station-Id=2408ZE10" | /usr/sbin/radperf -c 10 localhost:1812 auth testing123'