working-ish config for aurore
This commit is contained in:
parent
cd89d28a60
commit
d213b62fe5
2 changed files with 3 additions and 1 deletions
3
main.py
3
main.py
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
#coding:utf-8
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ api_hostname = config.get('Re2o', 'hostname')
|
||||||
api_password = config.get('Re2o', 'password')
|
api_password = config.get('Re2o', 'password')
|
||||||
api_username = config.get('Re2o', 'username')
|
api_username = config.get('Re2o', 'username')
|
||||||
|
|
||||||
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=False)
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=True)
|
||||||
|
|
||||||
client_hostname = socket.gethostname().split('.', 1)[0]
|
client_hostname = socket.gethostname().split('.', 1)[0]
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ radius-server host {{ ipv4 }} dyn-authorization
|
||||||
radius-server dyn-autz-port 3799
|
radius-server dyn-autz-port 3799
|
||||||
;--- Filtrage mac ---
|
;--- Filtrage mac ---
|
||||||
aaa port-access mac-based addr-format multi-colon
|
aaa port-access mac-based addr-format multi-colon
|
||||||
|
aaa port-access mac-based unauth-redirect "http://re2o.auro.re/users/initial_register"
|
||||||
;--- Bricoles ---
|
;--- Bricoles ---
|
||||||
no cdp run
|
no cdp run
|
||||||
{%- if additionals.dhcp_snooping_vlans %}
|
{%- if additionals.dhcp_snooping_vlans %}
|
||||||
|
|
Loading…
Reference in a new issue