From owner-freebsd-questions@FreeBSD.ORG Thu May 15 14:01:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 383EC37B401 for ; Thu, 15 May 2003 14:01:19 -0700 (PDT) Received: from hotmail.com (f91.law9.hotmail.com [64.4.9.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE1CD43F75 for ; Thu, 15 May 2003 14:01:18 -0700 (PDT) (envelope-from stephanweaver@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 May 2003 14:01:18 -0700 Received: from 196.3.147.57 by lw9fd.law9.hotmail.msn.com with HTTP; Thu, 15 May 2003 21:01:18 GMT X-Originating-IP: [196.3.147.57] X-Originating-Email: [stephanweaver@hotmail.com] From: "Stephan Weaver" To: spreng@socket.ch, questions@freebsd.org Date: Thu, 15 May 2003 21:01:18 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 May 2003 21:01:18.0847 (UTC) FILETIME=[21A160F0:01C31B25] Subject: Re: jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 21:01:19 -0000 Thanks tom! that seemed to work. i have another question, regarding jail and sendmail. my server hostname is requiem.digi-data.com. i have jailed my sendmail. here it comes... should i use the same hostname as my real OS requiem.digi-data.com, for the jail hostname- requiem.digi-data.com ? would that be wise? Thanks >From: Thomas Spreng >To: questions@freebsd.org >Subject: Re: jail >Date: Thu, 15 May 2003 09:10:46 +0200 > >hi, > > > 2) I am having trouble connecting jail to the internet. > > here is an output of my ifconfig > > harry@requiem:/home/harry# ifconfig rl0 > > rl0: flags=8843 mtu 1500 > > inet 209.94.197.222 netmask 0xffffffe0 broadcast 209.94.197.223 > > inet6 fe80::230:f1ff:fe44:9768%rl0 prefixlen 64 scopeid 0x1 > > inet 192.168.1.223 netmask 0xffffff00 broadcast 192.168.1.255 > > ether 00:30:f1:44:97:68 > > media: Ethernet autoselect (10baseT/UTP) > > status: active > >afaik, inet aliases need a netmask of 0xffffffff. > > > This is how i start jail > > harry@requiem:/home/harry# cat /usr/local/etc/rc.d/jail.sh > > #!/bin/sh > > mount -t procfs proc /usr/jail1/proc > > jail /usr/jail1 jailhost.requiem.digi-data.com 192.168.1.223 /bin/sh >/etc/rc > > - > > I HAD this entry in my ipnat.conf but it hangs my connection > > harry@requiem:/home/harry# cat /etc/ipnat.conf > > map rl0 209.94.197.222/32 -> 192.168.1.223/32 > >your nat mapping doesn't make much sense to me. You might want to map your >internal ip >adress(es) to your external one. Which would result in the following ipnat >rule: >map rl0 192.168.1.223/32 -> 0.0.0.0/32 > >cheers, > tom >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail