- Set the smba custom config
interfaces = br0
bind interfaces only = yes
- Restart the smba
killall smbd
sleep 5
smbd -D interfaces="br0 vlan2"
- Add the FreshTomato firewall rule
iptables -A INPUT -p udp -i vlan2 -m multiport --dports 137,138 -s 192.168.40.0/24 -j ACCEPT
iptables -A INPUT -p tcp -i vlan2 -m multiport --dports 139,445 -s 192.168.40.0/24 -j ACCEPT