This tool is a SMB/CIFS server. Microsoft Windows and Samba clients can be used to connect to this server, in order to access shared directory. When this tool is running, users can connect to it from Windows using \\1.2.3.4\share or \\server\share (might need to edit lmhost). This tool does not support filenames with accents nor with Unicode characters. It also has other limitations, but most users will not notice them (see smbser.h in source files). Parameter --rootdir defines the root directory for put and get file operations (cannot exit this root jail). Parameters --login and --password defines needed login and password. Parameter --allowed-clients lists the IP addresses or hosts allowed to connect. Parameter --src-port defines the local port number to listen on. Optional parameter --src-ip defines the local IP address to use. Optional parameter --iptype defines which kind of IP address to use when --src-ip is unset (accepted values: ip4 and ip6). Optional parameter --ip4opts permits to add IP4 options encoded as mixed. Optional parameter --ip6exts permits to add IP6 options encoded as mixed (first byte is the next header number). Optional parameters --device and --src-eth are not yet implemented. This tool may need to be run with admin privilege in order to listen on a small port number (port<1024).
parameter | description | example |
-s|--share smbshare | share name | share |
-r|--rootdir dir | root directory | /tmp |
-u|--user login | username needed to access | |
-w|--password password | password needed to access | |
-d|--device device | device name | Eth0 |
-E|--src-eth eth | source ethernet address | 0:2:3:4:5:6 |
-I|--src-ip ip | source IP address | 192.168.100.200 |
-P|--src-port port | source port number | 139 |
-o|--ip4opts ip4opts | IPv4 options | |
-O|--ip6exts ip6exts | IPv6 extensions | |
-t|--iptype iptype | type to use when src-ip is unset | ip4 |
-T|--timeout uint32 | timeout in milliseconds | 600000 |
-c|--allowed-clients ips | clients allowed to connect | all |
-U|--allow-put|+U|--no-allow-put | allow put/write on server | This boolean is set. Use + or --no- to unset it. |
-V|--verbose|+V|--no-verbose | display SMB trace | |
-D|--debug|+D|--no-debug | display SMB packets |