You can control which port Samba would use by adding
something like the following to your smb.conf:

smb ports = 139 445

This would cause the following result:

[EMAIL PROTECTED] $ sockstat | grep smb
haischt smbd 3501 5 tcp4 192.168.120.1:445 192.168.120.239:3046
haischt smbd 3501 21 udp4 127.0.0.1:63184 *:*
haischt smbd 3501 26 tcp4 192.168.120.25:51330 192.168.120.25:389
root smbd 1112 18 tcp4 127.0.0.1:139 *:*
root smbd 1112 19 tcp4 127.0.0.1:445 *:*
root smbd 1112 20 tcp4 192.168.120.1:139 *:*
root smbd 1112 21 tcp4 192.168.120.1:445 *:*


Marty Landman schrieb:
At 10:01 AM 1/23/2005, faisal gillani wrote:

i use samba on my freebsd server to share files , i dont use any active directory connectivity still the port "445/tcp open microsoft-ds" is open , i read is some where that this port should be close as it is dangerous to the server , is this true ?


Hi Faisal,

Are you running the newest Samba? I think this is relatively new because I run fbsd 4.8 and rh 9, both have samba but fbsd is running the new 3.0.10 and rh is running an older 2.x version. Here are my (persistent) connections on my win xp gateway:

System:4 TCP delliver:3033 penguin:netbios-ssn ESTABLISHED
System:4 TCP delliver:3034 swamisalami:microsoft-ds ESTABLISHED



Notice that the connection is to netbios-ssn on the rh box running samba 2.x, but to microsoft-ds which afaik is port 445 for the fbsd box running samba 3.0.10. TBH I don't know which port is being kept open for rh, so maybe this is of no help at all.


Well it helps me a little to repeat the bit that I do know. :)

Marty


Marty Landman, Face 2 Interface Inc. 845-679-9387 Search & Sort Easily: http://face2interface.com/Products/FormATable.shtml Web Installed Formmail: http://face2interface.com/formINSTal

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



-- Mit freundlichen Gruessen / With kind regards DAn.I.El S. Haischt

Want a complete signature??? Type at a shell prompt:
$ > finger -l [EMAIL PROTECTED]
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to