From: Michael Tremer Date: Fri, 9 Oct 2020 11:14:22 +0000 (+0100) Subject: samba: Drop interfaces configuration X-Git-Tag: v2.25-core152~7^2~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7129fb10786f33e748da0f82cc783b6f1a1e8c8;p=ipfire-2.x.git samba: Drop interfaces configuration 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 --- diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index 78efc51755..902ae6eac1 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -184,7 +184,7 @@ guest account = $sambasettings{'GUESTACCOUNT'} unix password sync = $sambasettings{'PASSWORDSYNC'} bind interfaces only = true -interfaces = $sambasettings{'INTERFACES'} +interfaces = green0 blue0 127.0.0.0/8 remote announce = $sambasettings{'REMOTEANNOUNCE'} remote browse sync = $sambasettings{'REMOTESYNC'} @@ -336,37 +336,7 @@ print < $Lang::tr{'basic options'} $Lang::tr{'workgroup'} -$Lang::tr{'interfaces'}on / - off | - OpenVpn - $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 | - $Lang::tr{'dmz'} - $netsettings{'ORANGE_DEV'} -END -; - } - print <$Lang::tr{'more'}
Wide linkson / off