# Only bind to allowed NIC's
bind interfaces only = yes
interfaces = 127.0.0.1 10.1.1.0/24 10.1.114.0/24
hosts allow = 127.0.0.1 10.1.1.0/255.255.255.0 10.1.114.0/255.255.255.0 10.10.1.0/255.255.255.0 192.168.78.0/255.255.255.0
[root@nethserver log]# netstat -plane | grep smbd
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 0 219350 1753/smbd
tcp 0 0 10.1.1.11:445 0.0.0.0:* LISTEN 0 219348 1753/smbd
tcp 0 0 10.1.114.11:445 0.0.0.0:* LISTEN 0 219344 1753/smbd
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 0 219351 1753/smbd
tcp 0 0 10.1.1.11:139 0.0.0.0:* LISTEN 0 219349 1753/smbd
tcp 0 0 10.1.114.11:139 0.0.0.0:* LISTEN 0 219347 1753/smbd
unix 3 [ ] STREAM CONNECTED 219331 1753/smbd
VPN network is 10.10.1.0/24 :
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.1.1 P-t-P:10.10.1.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1832 errors:0 dropped:0 overruns:0 frame:0
TX packets:1861 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:121855 (118.9 KiB) TX bytes:578347 (564.7 KiB)