Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 11:49:03 +0100 (CET)
From:      Christian Kratzer <ck@toplink.net>
To:        Jon Simola <jon@abccom.bc.ca>
Cc:        Dave VanAuken <dave@hawk-systems.com>, freebsd-isp@FreeBSD.ORG
Subject:   RE: Jail problems - Continued on fbsd 4.2 Release
Message-ID:  <Pine.LNX.4.21.0101021147240.1083-100000@hirvi.toplink.net>
In-Reply-To: <Pine.BSF.3.96.1010101204257.462C-100000@newmail.netbistro.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Mon, 1 Jan 2001, Jon Simola wrote:

> On Mon, 1 Jan 2001, Dave VanAuken wrote:
> 
> > Jail still not responding to telnet attempts.
> 
> On the host machine, your rc.conf entries should look something like:
> network_interfaces="fxp0 lo0"
> ifconfig_fxp0="inet x.x.x.192  netmask 0xffffff00"
> ifconfig_fxp0_alias0="inet x.x.x.193 netmask 0xffffff00"
> route_0="x.x.x.193 -iface lo0"
> 
> Also allows things like perl processes inside the jail to talk to the MySQL
> server running on the host.

just a minor nitpick here. On aliased ip addresses always use 0xffffffff as
the netmask. Else ifconfig will try readding the route to the attached network
which already is there from the primary ip address of the interface.

Using all ones netmask in the ifconfig also automatically gets you the host
route you require for local connectivity.

Greetings
Christian

-- 
TopLink Internet Services GmbH			ck@171.2.195.in-addr.arpa
Christian Kratzer				http://www.toplink.net/
Phone: 	+49 7032 2701-0
Fax: 	+49 7032 2701-19	FreeBSD spoken here!



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0101021147240.1083-100000>