Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 09:45:25 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Marius Kirschner <marius@agoron.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Routing question -- Samba
Message-ID:  <20040209204524.GA85284@grimoire.chen.org.nz>
In-Reply-To: <200402092040.i19Ke4Gj029169@tao.agoron.com>
References:  <200402092040.i19Ke4Gj029169@tao.agoron.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 192.168.1.0/24 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@chen.org.nz>
----------------------------------------------------------------------
                                          Experience is a hard teacher
               because she gives the test first, the lesson afterwards



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040209204524.GA85284>