Results 1 to 3 of 3
I know this is likely an obvious question to a lot of you but I haven't been able to find an explanation for this:
I'm making a home file server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-03-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 10
Samba: interfaces and host allow.
I know this is likely an obvious question to a lot of you but I haven't been able to find an explanation for this:
I'm making a home file server with CentOS 6.2 running 'basic server' with desktop and x-window installed (all of which is currently kicking my butt). In the smb.conf file I have the following which came automatically with Samba:
1) I want to configure this correctly for security reasons but I've struggled to find what these mean. As far as I can find on google interfaces the ways it will talk to clients, but how it that different than 'hosts allow'?Code:interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 hosts allow = 127. 192.168.12. 192.168.13.
2) What do 'lo' and 'eth0' mean?
3) My network is 192.168.1. and none of the listed networks are that. Is this because the ones Samba came up with are wrong or does Samba know something I don't?
Thank you so much for your help,
code_ape
- 06-03-2012 #2
"interfaces":
A network daemon listens on (at least) one port and (at least) one IP, so that it can be reached by its clients.
IPs are bound to physical or virtual network devices. These are calles lo for loopback, eth0 for the first ethernet, eth1 for the second, etc
By default, samba will listen on all available devices.
The interfaces keyword can limit that.
"hosts allow" is more focused on the IPs of the clients. Say, I want only a few hosts of a network allow access, then "hosts allow" can be used
About the 192.168.12.0/24 and 192.168.13.0/24:
No idea. Maybe this is a left over from previous config changes.
Btw, the default smb.conf is actually a good source of documentation.
As comments, it lists every keyword and gives an explanation.You must always face the curtain with a bow.
- 06-03-2012 #3Just Joined!
- Join Date
- Apr 2012
- Posts
- 10
Thank you
that helps everything make a lot more sense! And the commenting in smb.conf has helped a lot, just couldn't figure out a few things.



