From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] hostapd: make client isolation configurable via WebUI Date: Mon, 18 Mar 2019 12:33:27 +0000 Message-ID: <99654D6D-704D-47A4-A235-5E25D90176FA@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6209720552210200953==" List-Id: --===============6209720552210200953== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I guess this looks okay. The file has no translation it seems. Will you also build this for IPFire 3? -Michael > On 16 Mar 2019, at 14:20, Peter M=C3=BCller wr= ote: >=20 > hostapd supports client-isolation, but this feature could > not be configured via the WebUI so far. Since it might be > desired in public wireless networks, or even private ones, > it makes sense to provide a radio button to let the user > decide on. >=20 > Fixes #11974. >=20 > Signed-off-by: Peter M=C3=BCller > --- > html/cgi-bin/wlanap.cgi | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) >=20 > diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi > index 72c9a1298..cae191101 100644 > --- a/html/cgi-bin/wlanap.cgi > +++ b/html/cgi-bin/wlanap.cgi > @@ -75,6 +75,7 @@ $wlanapsettings{'DRIVER'} =3D 'NL80211'; > $wlanapsettings{'HTCAPS'} =3D ''; > $wlanapsettings{'VHTCAPS'} =3D ''; > $wlanapsettings{'NOSCAN'} =3D 'off'; > +$wlanapsettings{'CLIENTISOLATION'} =3D 'off'; >=20 > &General::readhash("/var/ipfire/wlanap/settings", \%wlanapsettings); > &Header::getcgihash(\%wlanapsettings); > @@ -252,6 +253,10 @@ $checked{'NOSCAN'}{'off'} =3D ''; > $checked{'NOSCAN'}{'on'} =3D ''; > $checked{'NOSCAN'}{$wlanapsettings{'NOSCAN'}} =3D "checked=3D'checked'"; >=20 > +$checked{'CLIENTISOLATION'}{'off'} =3D ''; > +$checked{'CLIENTISOLATION'}{'on'} =3D ''; > +$checked{'CLIENTISOLATION'}{$wlanapsettings{'CLIENTISOLATION'}} =3D "check= ed=3D'checked'"; > + > $selected{'ENC'}{$wlanapsettings{'ENC'}} =3D "selected=3D'selected'"; > $selected{'CHANNEL'}{$wlanapsettings{'CHANNEL'}} =3D "selected=3D'selected'= "; > $selected{'COUNTRY'}{$wlanapsettings{'COUNTRY'}} =3D "selected=3D'selected'= "; > @@ -377,6 +382,7 @@ print < SSID:  > > SSID Broadcast: on | off > +Client Isolation: on | off >=20 >=20 > $Lang::tr{'wlanap country'}:  > @@ -632,6 +638,14 @@ END >=20 > } >=20 > + # https://forum.ipfire.org/viewtopic.php?f=3D22&t=3D12274&p=3D79070#p79070 I do not get how this comment is helpful. > + if ( $wlanapsettings{'CLIENTISOLATION'} eq 'on' ){ > + print CONFIGFILE < +ap_isolate=3D1 > +END > +; > + } > + > if ( $wlanapsettings{'NOSCAN'} eq 'on' ){ > print CONFIGFILE < noscan=3D1 > --=20 > 2.16.4 --===============6209720552210200953==--