https://github.com/farhanmustar/freeradius_docker
Freeradius on docker for testing
https://github.com/farhanmustar/freeradius_docker
docker freeradius
Last synced: 3 months ago
JSON representation
Freeradius on docker for testing
- Host: GitHub
- URL: https://github.com/farhanmustar/freeradius_docker
- Owner: farhanmustar
- Created: 2023-04-17T04:15:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T03:12:43.000Z (over 2 years ago)
- Last Synced: 2025-03-17T16:32:08.957Z (7 months ago)
- Topics: docker, freeradius
- Language: Dockerfile
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Source From: [free radius docker](https://hub.docker.com/r/freeradius/freeradius-server/)
Build the docker image.
```bash
docker build -t my_radius_image -f Dockerfile .
```Run the docker image.
```bash
docker run -d --rm --name my_radius -p 1812:1812 -p 1812:1812/udp my_radius_image
```Attach to the docker image.
```bash
docker container exec -it my_radius bash
```Obtain currently used certs.
```bash
docker container cp my_radius:/etc/freeradius/certs .
```## Config Note
* [Good explaination about the file structure.](https://networkradius.com/doc/3.0.10/raddb/home.html)
* [FreeRADIUS github with config example.](https://github.com/FreeRADIUS/freeradius-server)
* [FreeRADIUS docs.](https://github.com/FreeRADIUS/freeradius-server/blob/master/doc/antora/modules/raddb/pages/index.adoc)## Test using freeradius-utils
Install and test using cleartext-password.
```bash
sudo apt-get install freeradius-utils
radtest bob test localhost 0 testing123
```## Cleanup
* Due to docker build is being cached, removing the image is not enough.
* Run following to ensure older generated certs is not being reused.
```bash
docker image prune -a
docker system prune -a
```