mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/freeradius: add mikrotik vlan support (#673)
This commit is contained in:
parent
19a2ff016b
commit
c358e3ec72
6 changed files with 35 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
PLUGIN_NAME= freeradius
|
||||
PLUGIN_VERSION= 1.6.0
|
||||
PLUGIN_VERSION= 1.7.0
|
||||
PLUGIN_COMMENT= RADIUS Authentication, Authorization and Accounting Server
|
||||
PLUGIN_DEPENDS= freeradius3
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
|||
|
|
@ -91,6 +91,18 @@
|
|||
<type>text</type>
|
||||
<help>Set the maximum download bandwith for ChilliSpot attribute. The value is treated as kbits/s.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>user.mikrotik_vlan_id_number</id>
|
||||
<label>Mikrotik VLAN ID</label>
|
||||
<type>text</type>
|
||||
<help>Set the Mikrotik VLAN ID attribute. Mikrotik uses own attributes for VLAN assignment.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>user.mikrotik_vlan_id_type</id>
|
||||
<label>Mikrotik VLAN Type</label>
|
||||
<type>text</type>
|
||||
<help>Set the Mikrotik VLAN type attribute. For general use a value of 0 is fine.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>user.sessionlimit_max_session_limit</id>
|
||||
<label>Max Daily Session</label>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,12 @@
|
|||
<type>checkbox</type>
|
||||
<help>This enables the ChilliSpot attributes assignment via users tab.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.mikrotik</id>
|
||||
<label>Enable Mikrotik attributes</label>
|
||||
<type>checkbox</type>
|
||||
<help>This enables the Mikrotik attributes assignment via users tab.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.sessionlimit</id>
|
||||
<label>Enable Daily Session Limit</label>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,10 @@
|
|||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</chillispot>
|
||||
<mikrotik type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</mikrotik>
|
||||
<sessionlimit type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
|
|
|||
|
|
@ -58,6 +58,12 @@
|
|||
<chillispot_bw_max_down type="IntegerField">
|
||||
<Required>N</Required>
|
||||
</chillispot_bw_max_down>
|
||||
<mikrotik_vlan_id_number type="IntegerField">
|
||||
<Required>N</Required>
|
||||
</mikrotik_vlan_id_number>
|
||||
<mikrotik_vlan_id_type type="IntegerField">
|
||||
<Required>N</Required>
|
||||
</mikrotik_vlan_id_type>
|
||||
<sessionlimit_max_session_limit type="IntegerField">
|
||||
<Required>N</Required>
|
||||
</sessionlimit_max_session_limit>
|
||||
|
|
|
|||
|
|
@ -41,6 +41,12 @@
|
|||
{% endif %}
|
||||
{% if user_list.chillispot_bw_max_down is defined %}
|
||||
ChilliSpot-Bandwidth-Max-Down = {{ user_list.chillispot_bw_max_down }},
|
||||
{% endif %}
|
||||
{% if user_list.mikrotik_vlan_id_number is defined %}
|
||||
Mikrotik-Wireless-VLANID = {{ user_list.mikrotik_vlan_id_number }},
|
||||
{% endif %}
|
||||
{% if user_list.mikrotik_vlan_id_type is defined %}
|
||||
Mikrotik-Wireless-VLANID-Type = {{ user_list.mikrotik_vlan_id_type }},
|
||||
{% endif %}
|
||||
Framed-Protocol = PPP
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue