Temat: Samba na dwóch interfejsach (jeden to sieć gościnna)
Próbuję ustawić zasób samby aby był dostępny zarówno w sieci wifi dla stałych użytkowników jak i w sieci gościnnej.
Nie mam już pomysłów gdzie tkwi błąd. Zasób jest widoczny w sieci br-lan ale nie można się do niego dostać z br-guest.
Najważniejsze pliki poniżej.
# cat /etc/samba/smb.conf
[global]
netbios name = homewifi
display charset = UTF-8
interfaces = lo br-lan br-guest
server string = homewifi network shares
unix charset = UTF-8
workgroup = WORKGROUP
bind interfaces only = yes
deadtime = 30
enable core files = no
invalid users = root
local master = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
passdb backend = smbpasswd
security = user
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes
[Drukarki]
path = /mnt/sda1/Drukarki
read only = yes
guest ok = yes
browseable = yes
[Instrukcje]
path = /mnt/sda1/Instrukcje
read only = yes
guest ok = yes
browseable = yes
#cat /etc/config/samba
config samba
option workgroup 'WORKGROUP'
option name 'homewifi'
option description 'homewifi network shares'
option homes '0'
option interface 'loopback lan guest'
config sambashare
option browseable 'yes'
option name 'Drukarki'
option read_only 'yes'
option guest_ok 'yes'
option path '/mnt/sda1/Drukarki'
config sambashare
option browseable 'yes'
option name 'Instrukcje'
option path '/mnt/sda1/Instrukcje'
option read_only 'yes'
option guest_ok 'yes'
# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.7.1'
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth1'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0t'
config interface 'guest'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.8.1'
option netmask '255.255.255.0'
Będę wdzięczny za podpowiedź.
Dziekuję i pozdrawiam,
Marcin