Solved Problem accessing freeBSD ver 11.2 from Windows after install of 11.2

I started over with ver 11.2 after corrupt version 10.4 due to sqlite3data base problem. The install appeared to go OK. I had saved off the important configuration files to be used for the new install. I installed samba48 current version 4.8.2_1 and used the smb4.conffrom the previous version. Here is what is interesting; When I tried to access the shared drives drives from Windows they would not connect. The new installation of FreeBSD does not show on the search of the network with Windows. I can access the new installation from other FreeBSD computers using ssh, telnet without any problems. Telnet from a Windows computer will not connect, but connects to another FreeBSD computer including PfSENSE. Using PuTTY and a software product called SecureCrt from a company called VanDyke had no success. They had no problem connecting under the old version 10.4 They can not find the FreeBSD computer in the network. No changes have been done to the Windows computer. I also are able to ping the new installation from Windows without any problem. The following should show that the installed modules should be OK.
Code:
root@Phaedra:/ # ps -aux |grep smbd
root         657   0.0  0.0  308336  2204  -  Is   22Jun18     0:01.21 /usr/local/sbin/smbd --daemon --configfile=/usr/local/etc/smb4.conf
root         664   0.0  0.0  310880  2512  -  I    22Jun18     0:05.55 /usr/local/sbin/smbd --daemon --configfile=/usr/local/etc/smb4.conf
root         665   0.0  0.0  306660  1940  -  S    22Jun18     0:00.54 /usr/local/sbin/smbd --daemon --configfile=/usr/local/etc/smb4.conf
root         668   0.0  0.0  308852  2052  -  I    22Jun18     0:00.76 /usr/local/sbin/smbd --daemon --configfile=/usr/local/etc/smb4.conf
root        2663   0.0  0.1  318152 12404  -  S     8:23AM     0:00.07 /usr/local/sbin/smbd --daemon --configfile=/usr/local/etc/smb4.conf
root@Phaedra:/ # ps -aux | grep nmbd
root         654   0.0  0.0  236848  1984  -  Ss   22Jun18     0:11.11 /usr/local/sbin/nmbd --daemon --configfile=/usr/local/etc/smb4.conf
root        3160   0.0  0.0   18864  1852  4  S+   11:33AM     0:00.00 grep nmbd
root@Phaedra:/ # service samba_server restart
Performing sanity check on Samba configuration: OK
Stopping smbd.
Waiting for PIDS: 657.
Stopping nmbd.
Waiting for PIDS: 654.
Performing sanity check on Samba configuration: OK
Starting nmbd.
Starting smbd.
root@Phaedra:/ #
root@Phaedra:/ #
root@Phaedra:/ # ps -aux | grep sshd
root        3281   0.0  0.1   61336  6488  -  Is   11:48AM     0:00.00 /usr/sbin/sshd
root        3289   0.0  0.0   18864  1892  4  S+   11:50AM     0:00.00 grep sshd
root@Phaedra:/ #
root@Phaedra:/ # ps -aux | grep shd
root        3281   0.0  0.1   61336  6488  -  Is   11:48AM     0:00.00 /usr/sbin/sshd
root        3291   0.0  0.0   18864  1884  4  S+   11:51AM     0:00.00 grep shd
root@Phaedra:/ # ps -aux | grep telent
root        3297   0.0  0.0   10672  1776  4  R+   11:53AM     0:00.00 grep telent
root@Phaedra:/ #

I don't know if the problem is with version 11.2 or with the ports/packages. I have no idea why the Windows box does not see the FreeBSD box as it had under the old version 10.4. If anybody has any ideas on where to look, I am open to any suggestions no matter how bizarre.
 
I don't think that samba is the main problem because the other programs PuTTY, SecureCrt no longer works. Both of these programs are run from Windows. PuTTY shows a screen with the cursor and no "logon as" and SecureCrt shows an immediate non connect.

smbtree returns nothing even with the different options.

What is the "192.168.20.137" as I have no device with that ip address?

Here is the outputs;
Code:
root@Prometheus:/usr/local/etc # sockstat -4l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS     
root     smbd       1409  35 tcp4   192.168.20.7:445      *:*
root     smbd       1409  36 tcp4   192.168.20.7:139      *:*
root     nmbd       1404  16 udp4   *:137                 *:*
root     nmbd       1404  17 udp4   *:138                 *:*
root     nmbd       1404  18 udp4   192.168.20.7:137      *:*
root     nmbd       1404  19 udp4   192.168.20.231:137    *:*
root     nmbd       1404  20 udp4   192.168.20.7:138      *:*
root     nmbd       1404  21 udp4   192.168.20.231:138    *:*
root     inetd      663   5  tcp4   *:21                  *:*
root     inetd      663   6  tcp4   *:23                  *:*
root     sendmail   602   3  tcp4   127.0.0.1:25          *:*
root     sshd       598   4  tcp4   *:22                  *:*
root     ntpd       509   21 udp4   *:123                 *:*
root     ntpd       509   22 udp4   192.168.20.7:123      *:*
root     ntpd       509   25 udp4   127.0.0.1:123         *:*
root     syslogd    448   7  udp4   *:514                 *:*
root@Prometheus:/usr/local/etc #

Code:
# samba config file created using SWAT
# from UNKNOWN (192.168.20.201)
# Date: 2016/01/05 15:15:16

[global]
        netbios name = PROMETHEUS
        workgroup = GROUP1
#        realm = GROUP1
        interfaces = re0 192.168.20.7
        bind interfaces only = Yes
        server role = standalone server
#        server role = auto
        security = user
        security = AUTO
        map to guest = Bad User
        client max protocol = SMB2
        client min protocol = SMB2
        idmap config * : range = 1000000-1999999
        idmap config * : backend = tdb
        map readonly = no
        load printers =no
        local master = no
        domain master = no

[homes]
        comment = Home Directories
        read only = No
        browseable = No

#[printers]
#        comment = All Printers
#        path = /var/spool/samba4
#        guest ok = Yes
#        printable = no
#        print ok = Yes
#        browseable = No
#        available = No

[public]
        comment = %h Shared Public Directory
        path = /storage2/public
#        users = nobody
        force user = nobody
        force group = nobody
        read only = No
        force create mode = 0766
        force directory mode = 0777
        guest ok = Yes
        oplocks = yes
#        oplocks = no
        strict locking = no

[Movies]
        comment = %h Shared Public Directory
        path = /storage3/Movies
#        users = nobody
        force user = nobody
        force group = nobody
        read only = No
        force create mode = 0666
        force directory mode = 0777
        guest ok = Yes

[Photos]
        comment = %h Shared Public Directory
        path = /storage4/Photos
#        users = nobody
        force user = nobody
        force group = nobody
        read only = No
        force create mode = 0666
        force directory mode = 0777
        guest ok = Yes
smb4.conf: 73 lines, 1899 characters.
 
show your ifconfig output. You maybe have wrong IP address configured or more than one interface.

ps.
"client max protocol" is for samba client connection. There's different variable for the server
example:

# this set the server minimum protocol to SMB2_10: Windows 7 SMB2 version.
server min protocol = SMB2

# this set the server maximum protocol version to SMB3_11 variant
server max protocol = SMB3

# this set the client minimum protocol to SMB2_10
client min protocol = SMB2

# this set the client max supported protocol
client max protocol = SMB3

# this will set the minimum supported protocol for server it's synonym of server min protocol
min protocol = SMB2

# this will set the maximum supported protocol for the server. It's synonym of server max protocol.
max protocol = SMB3

# this will set IPC$ minimum protocol
client ipc min protocol = SMB2
 
Here is the output. I was looking at the broadcast address 192.168.20.231and did a little research on what a broadcast is and what it does. I saw where all the examples were using 192.168.20.255. So I changed an entry /etc/rc.confto ifconfig_re0="inet 192.168.20.7 netmask 255.255.255.0". I had a net mask of 192.168.20.24. I don't know why I used 24 in the setup. Everything works now.

Thank you for the help. You set me on the right path to fix this thing.

One more question. How do I mark this thing closed?

This was the old output;
Code:
$ ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether d0:50:99:65:4b:0b
        hwaddr d0:50:99:65:4b:0b
        inet 192.168.20.7 netmask 0xffffff18 broadcast 192.168.20.231
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
$
 
Back
Top