[Samba] Strange behavior when using 'hosts allow' parameter

Ricky Nance ricky.nance at gmail.com
Fri Apr 19 18:08:22 MDT 2013


Do you see the same behavior if you add localhost and your hostname to
hosts allow? Also, with s3fs it'd be interesting to know if the hosts allow
parameter is even recognized by smbd, though I am not seeing how to check
that right at the moment.

example for your config: hosts allow = 10.0.0. 127. localhost myhostname

Ricky


On Fri, Apr 19, 2013 at 10:58 AM, Phil Quesinberry <
philq at qsystemsengineering.com> wrote:

> Some additional info on this.  When copying files from another host on the
> network which is allowed by the hosts allow entry, I get 'denied by access
> rules' entries filling the log at over 1000 lines per second.  Log level is
> currently set to 3.  I'm guessing I need to file a bug report:
>
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>   only_ipaddrs_in_list: list has non-ip address (10.0.0.)
> [2013/04/19 00:24:49,  0]
> ../source4/lib/socket/access.c:356(socket_check_access)
>   socket_check_access: Denied connection to 'smbd' from LOCAL/unixdom
> (LOCAL/unixdom)
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/service_stream.c:63(stream_terminate_connection)
>   Terminating connection - 'denied by access rules'
> [2013/04/19 00:24:49,  3]
> ../source4/smbd/process_single.c:114(single_terminate)
>   single_terminate: reason[denied by access rules]
> [2013/04/19 00:24:49,  3]
> ../source4/lib/socket/access.c:298(only_ipaddrs_in_list)
>
>
>
>
> --
> View this message in context:
> http://samba.2283325.n4.nabble.com/Strange-behavior-when-using-hosts-allow-parameter-tp4646968p4647026.html
> Sent from the Samba - General mailing list archive at Nabble.com.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list