From owner-freebsd-isp Tue Jan 2 2:47:45 2001 From owner-freebsd-isp@FreeBSD.ORG Tue Jan 2 02:47:43 2001 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mail-secure.toplink.net (mail-secure.toplink.net [195.2.171.5]) by hub.freebsd.org (Postfix) with ESMTP id 10B1C37B400 for ; Tue, 2 Jan 2001 02:47:42 -0800 (PST) Received: from localhost.toplink.net (mail-scan.toplink.net [195.2.171.141]) by mail-secure.toplink.net (8.9.3/8.9.3) with ESMTP id LAA41697; Tue, 2 Jan 2001 11:47:06 +0100 (CET) Received: from mail-secure.toplink.net (mail-scan [127.0.0.1]) by localhost.toplink.net (8.9.3/8.9.3) with ESMTP id LAA23471; Tue, 2 Jan 2001 11:07:29 +0100 Received: (from uucp@localhost) by mail-secure.toplink.net (8.9.3/8.9.3) with UUCP id LAA41695; Tue, 2 Jan 2001 11:47:05 +0100 (CET) Received: from localhost (ck@localhost) by hirvi.toplink.net (8.11.0/8.11.0) with ESMTP id f02An3g01103; Tue, 2 Jan 2001 11:49:03 +0100 Date: Tue, 2 Jan 2001 11:49:03 +0100 (CET) From: Christian Kratzer To: Jon Simola Cc: Dave VanAuken , freebsd-isp@FreeBSD.ORG Subject: RE: Jail problems - Continued on fbsd 4.2 Release In-Reply-To: Message-ID: X-NCC-RegID: de.toplink X-Spammer-Kill-Ratio: 75% X-Jihad: Will hunt down all cases of Spam and Net abuse. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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