in smb.conf

bind interfaces only = yes
interfaces = 192.168.1.1/24 127.0.0.1