summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-08 17:42:03 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-08 17:42:06 +0100
commit84cec1938dbb59590df46690bb2f0155850fd8b6 (patch)
treecca87e5a4f783134b25f7d2b72b3c5ee90a418dd /src/conf_mode
parentff2e8d333d659567132660d8a09094acf07eb8d3 (diff)
downloadvyos-1x-84cec1938dbb59590df46690bb2f0155850fd8b6.tar.gz
vyos-1x-84cec1938dbb59590df46690bb2f0155850fd8b6.zip
wireless: T1627: configure own_ip_addr to be compliant with the RADIUS protocol
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 0c6500578..9cbb4c1cd 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -640,6 +640,12 @@ wpa_key_mgmt=WPA-EAP
# IP addresses, but this field can be used to force a specific address to be
# used, e.g., when the device has multiple IP addresses.
radius_client_addr={{ sec_wpa_radius_source }}
+
+# The own IP address of the access point (used as NAS-IP-Address)
+own_ip_addr={{ sec_wpa_radius_source }}
+{% else %}
+# The own IP address of the access point (used as NAS-IP-Address)
+own_ip_addr=127.0.0.1
{% endif %}
{% for radius in sec_wpa_radius -%}