From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 23/54] samba: Drop interfaces configuration Date: Tue, 13 Oct 2020 16:07:41 +0000 Message-ID: <20201013160812.27754-23-michael.tremer@ipfire.org> In-Reply-To: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3479998745687747216==" List-Id: --===============3479998745687747216== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It is virtually impossible to limit samba to these interfaces only. Therefore we add a static list of all interfaces of the local network. Signed-off-by: Michael Tremer --- html/cgi-bin/samba.cgi | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index 78efc5175..902ae6eac 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -184,7 +184,7 @@ guest account =3D $sambasettings{'GUESTACCOUNT'} unix password sync =3D $sambasettings{'PASSWORDSYNC'} =20 bind interfaces only =3D true -interfaces =3D $sambasettings{'INTERFACES'} +interfaces =3D green0 blue0 127.0.0.0/8 remote announce =3D $sambasettings{'REMOTEANNOUNCE'} remote browse sync =3D $sambasettings{'REMOTESYNC'} =20 @@ -336,37 +336,7 @@ print < $Lang:= :tr{'basic options'} $Lang::tr{'workgroup'} -$Lang::tr{'interfaces'}on / - off | - O= penVpn - $ovpnip[0].$ovpnip[1].$ovpnip[2].$ovpnip[3]/$ovpnnetwork[1] -on / - off | - $Lang= ::tr{'green'} - $netsettings{'GREEN_DEV'} -END -; - -if (&Header::blue_used()) - { - print <on / - off | - $Lang= ::tr{'wireless'} - $netsettings{'BLUE_DEV'} -END -; - } - -if (&Header::orange_used()) - { - print <on / - off | - $La= ng::tr{'dmz'} - $netsettings{'ORANGE_DEV'} -END -; - } - print <$Lang::tr{'more'}
Wide linkson off --=20 2.20.1 --===============3479998745687747216==--