Le 30/03/2025 ? 18:52, Rowland Penny via samba a ?crit?:> On Sun, 30 Mar 2025 17:58:10 +0200
> f0rhum via samba <samba at lists.samba.org> wrote:
>
>> Hi Rowland
>>
>>> disable netbios = yes
>>> smb ports = 4445
>>> nbt port = 1137
>> Does it make sense to have these 3 all together?
> Well, no.
> The first two together, or the last two together, but not all three
> together, you need netbios for the nbt port.
Hi Rowland
I tried with smb.conf below and captured with tcpdump wlan1 in the
phone, with nothing else than the phone and the camera attached, trying
to use only smb1 (I don't worry about security because there is only the
server and the camera on this wlan).
sudo tcpdump -c5000 -U -i wlan1 -net 192.168.94.0/24 -w
path/tcpdumpStartSrvsmb1.pcap
in one terminal.
In another one I run smbd && sleep 3 && nmbd -p1137 -d3
&& sudo ip -4 a
last command just to check wlan1 IP.
still nmbd won't show on ps -A|grep mbd
There is no packet from the server when it starts
After initial DHCP offer/ack and broadcast ARP probe + own IP
announcements from camera it seems the camera is only speaking smb1
ports 137 to 138 but not 135 neither 139 (NBNS unreplied registration
broadcasts for NBNS(137) name and workgroup, then also unreplied
BROWSER(138) Get Backup List Request broadcasts, then NBNS Name query
NBTSTAT full of zeros to the phone IP, to which an ICMP reply comes back
from the phone IP with content Destination unreachable (Port
unreachable), all this twice
until I manually teach it the server/phone IP, then it can finally show
the share list and prompts credentials then connects/transfers files
over smb2 port 445 (DCERPC - SRVSVC - SMB)
# vim: filetype=samba
[global]
server min protocol = lanman1
server max protocol = nt1
disable netbios = no
smb ports = 4445 1139
dgram port = 1138
nbt port = 1137
unix extensions = yes
?? netbios name = MYPHONE
?? workgroup = WORKGROUP
?? server string = Samba on Termux
?? security = user
?? server role = standalone
?? bind interfaces only = yes
?? interfaces = 127.0.0.0/8 wlan* staticip
?? delete readonly = yes
?? inherit permissions = yes
?? multicast dns register = no
?? host msdfs = no
?? dcerpc endpoint servers = rpcecho
?? max connections = 6
?? max smbd processes = 8
?? deadtime = 15
?? restrict anonymous = 2
?? aio write size = 0
?? min receivefile size = 16384
?? nt acl support = no
?? ea support = no
?? store dos attributes = no
?? map archive = no
?? max log size = 50
?? enable core files = no
?? load printers = no
?? printing = bsd
?? printcap name = /dev/null
?? disable spoolss = yes
?? show add printer wizard = no
?? max print jobs = 0
#============================ Share Definitions
=============================[TZ]
?? comment = Internal storage
?? path = /sdcard/DCIM/TZ
?? vfs objects = aio_pthread
?? aio_pthread:aio open = yes
?? read only = no