Giter VIP home page Giter VIP logo

eduroam_radius's Introduction

Build Status

Ansible Playbook for an eduroam IdP/Radius server

Provisioning

  • Clone the repository from Github

      git clone https://github.com/ubuntunet/eduroam_radius.git
    
  • Change into the newly created directory

      cd eduroam_radius
    
  • Copy the inventory template

      cp inventories/template inventories/<tld_institution>
    
  • Open your new inventory and replace

ย - FQDN or IP with the actual URL/IP of your server

  • <tld_institution> with your actual inventory file name

  • Copy the group_vars template

      cp group_vars/template group_vars/<tld_institution>
    
  • Adopt the variables in group_vars/<tld_institution> to your liking

  • Copy the clients template, where you'll be adding the information about the clients that are connecting to your Radius server

      cp group_vars/clients.yml.example group_vars/clients.yml
    
  • Create the secret.yml file that contains your sensitive information. Add your credentials.

      cp group_vars/secrets.yml.example group_vars/secrets.yml
    
  • Run the playbook and make sure it finishes without error messages. Whenever you change something in the playbook, just replay this command.

      ansible-playbook -i inventories/<tld_institution> eduroam_idp.yml
    

Adding a new client/access point (AP)

  • Open group_vars/clients.yml

  • Copy/Paste the client entry MyOtherAP

  • Change the name, IP address and shared secret

  • Re-run the playbook with the clients tag, which will only copy the clients.conf file making for a faster deployment

      ansible-playbook -i inventories/<tld_institution> --tags "clients" eduroam_idp.yml
    

How do I check if it works?

Using radtest

    radtest [user] [password] localhost:[port (default is 1812)][nas-port-number(default 0)][shared_secret]

and check for an "Access-Accept" in the response.

  • Run radtest remotely if you have enabled the static test user

      ansible radius -i inventories/<tld_institution> -a "radtest test mySecret localhost:1812 0 testing123"
    
  • Run the Freeradius service manually to see what is happening at the server side

    • Log into your machine

    • Stop the freeradius daemon

          sudo service freeradius stop 
      
    • Start it manually in debug mode

          sudo freeradius -X
      

Using eapol_test

See also http://deployingradius.com/scripts/eapol_test

  • Enable eapol_test role in your group_vars file

        play_eapol: True
    
  • Re-run playbook

        ansible-playbook -i inventories/<tld_institution> eduroam_idp.yml          
    
  • Log into the server

  • Have a look at the configuration test file in your home folder

        vi ~/peap-mschapv2.conf
    
  • Run the test

        eapol_test -c ~/peap-mschapv2.conf -s testing123
    

eduroam_radius's People

Contributors

davyabeye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.