Giter VIP home page Giter VIP logo

pfc-freeradius-server's Introduction

Statistics Docker Hub

DockerHub stars DockerHub pulls DockerHub build-status

Statistics Git Hub

GitHub issues GitHub stars

How to use Freeradius Server on Wago Device

Prerequisites for tutorial

Starting the server

$ docker run --name my-radius -d wagoautomation/pfc-freeradius-server

The image contains only the default FreeRADIUS configuration which has no users, and accepts test clients on 127.0.0.1. In order to use it in production, you will need to add clients to the clients.conf file, and users to the "users" file in mods-config/files/authorize.

Modify the configuration to yours

Where clients.conf contains a simple client definition

client YOUR-NAME {                 
    ipaddr = YOUR-NETWORK -> for example 172.17.0.0/16              
    secret = YOUR-SECRET -> for example testing123                   
}

and the authorise "users" file contains a test user:

YOUR-USERNAME    Cleartext-Password := "YOUR-USERPASSWORD"

Or you clone the github repo and modify the files clients.conf and authorise to your own. But then you need to use the volume mount flag, shown as follow:

$ docker run --name my-radius \   
-v $PWD/clients.conf:/etc/raddb/clients.conf \   
-v $PWD/authorize:/etc/raddb/mods-config/files/authorize \  
-d wagoautomation/pfc-freeradius-server

How to use this images

With standard configuration you can the image shwon as follow:

 $ docker run --name my-radius -p 1812-1813:1812-1813/udp wagoautomation/pfc-freeradius-server

For debbuging your configuartion you can use the -X attribut:

 $ docker run --name my-radius -p 1812-1813:1812-1813/udp wagoautomation/pfc-freeradius-server -X

How to modify your Wago device as supplicant for IEEE802.1x

Copy the file wpa_supplicant.conf from github repo to /etc/ on your Wago device and modify the credentials.

Copy the file wpa_supplicant from github repo to /etc/init.d/ and make a symlink with the following command.

ln -s /etc/init.d/wpa_supplicant /etc/rc.d/S97_wpa_supplicant

You can read the procedure in the wago cyber security manual for pfc controller. LINK cyber security manual

pfc-freeradius-server's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.