Routing question -- Samba

Jonathan Chen jonc at
Mon Feb 9 12:45:29 PST 2004

On Mon, Feb 09, 2004 at 03:40:04PM -0500, Marius Kirschner wrote:
> I have a 4.9 box that's on a public IP and I want to configure Samba so it
> only accepts connections from the private network (192.168.1).  My question
> is, can I do that with only 1 NIC card or do I have to add a second NIC for
> the private LAN?

You can do make samba accept only on the network by
specifying the "hosts allow" directive on smb.conf. However, if you
have the public IP and private network on the same NIC, people can
spoof your `private' network and get onto your box.
Jonathan Chen <jonc at>
                                          Experience is a hard teacher
               because she gives the test first, the lesson afterwards

More information about the freebsd-questions mailing list