aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Brunner <s.brunner@stephan-brunner.net>2018-01-19 14:03:46 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-01-27 16:46:45 +0100
commit285791934be0c5a3531e25a05736868b186e9843 (patch)
tree0edb35fea0cd92abbc5c18e9b3dc4476d39b7f4f
parent006a8a063cbcc4395d9bb72f1bb85a9411e384ea (diff)
downloadupstream-285791934be0c5a3531e25a05736868b186e9843.tar.gz
upstream-285791934be0c5a3531e25a05736868b186e9843.tar.bz2
upstream-285791934be0c5a3531e25a05736868b186e9843.zip
hostapd: add support for hostapd's radius_client_addr
Add support for hostapd's radius_client_addr in order to force hostapd to send RADIUS packets from the correct source interface rather than letting linux select the most appropriate. Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>
-rw-r--r--package/network/services/hostapd/files/hostapd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 36aee85f17..8217f8c2ab 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -172,6 +172,7 @@ hostapd_common_add_bss_config() {
config_add_string nasid
config_add_string ownip
+ config_add_string radius_client_addr
config_add_string iapp_interface
config_add_string eap_type ca_cert client_cert identity anonymous_identity auth priv_key priv_key_pwd
config_add_string ieee80211w_mgmt_cipher
@@ -305,7 +306,7 @@ hostapd_set_bss_options() {
json_get_vars \
auth_server auth_secret auth_port \
dae_client dae_secret dae_port \
- ownip \
+ ownip radius_client_addr \
eap_reauth_period
# radius can provide VLAN ID for clients
@@ -332,6 +333,7 @@ hostapd_set_bss_options() {
}
[ -n "$ownip" ] && append bss_conf "own_ip_addr=$ownip" "$N"
+ [ -n "$radius_client_addr" ] && append bss_conf "radius_client_addr=$radius_client_addr" "$N"
append bss_conf "eapol_key_index_workaround=1" "$N"
append bss_conf "ieee8021x=1" "$N"