From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 00:40:25 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E191D1065678 for ; Sun, 20 Jul 2008 00:40:25 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from smtp.tal.navalradio.cl (smtp.tal.navalradio.cl [201.236.67.155]) by mx1.freebsd.org (Postfix) with ESMTP id 898248FC08 for ; Sun, 20 Jul 2008 00:40:25 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from [172.18.64.125] ([172.18.64.125]) (authenticated bits=0) by smtp.tal.navalradio.cl (8.13.8/8.13.8) with ESMTP id m6K0bgKc090503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 Jul 2008 00:37:52 GMT (envelope-from mikhailg@webanoide.org) Message-ID: <48828965.5000802@webanoide.org> Date: Sat, 19 Jul 2008 20:40:05 -0400 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0KjQsNC/0L7QstCw0Ls=?= , freebsd-jail@freebsd.org References: <488233B0.1000904@webanoide.org> <48825D18.1010001@webanoide.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: getpwnam: root: No such file or directory X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 00:40:26 -0000 Please make sure you also reply to the list (freebsd-jail@freebsd.org). Евгений Шаповал wrote: >> As Miroslav already stated, can you show us the rc.conf of the host and the >> way you populated the jail? > > rc.conf of main os: > =========================================================== > defaultrouter="xxx.xxx.236.249" > ifconfig_fxp0="inet xxx.xxx.236.251/29" > ifconfig_fxp0_alias0="inet xxx.xxx.10.131/26" > ifconfig_lo0_alias0="inet xxx.xxx.236.253/30" > > // test jail > ifconfig_fxp0_alias0="inet xxx.xxx.10.160 netmask 255.255.255.0" ^^^^^^^^^^^ You declared ifconfig_fxp0_alias0 twice. This will cause confusion in your system. > ifconfig_fxp0_alias1="inet xxx.xxx.10.161 netmask 255.255.255.0" > [...] > > jail_enable="YES" > jail_list="test" > jail_set_hostname_allow="YES" You might want to add the following lines: jail_exec_start="/bin/sh /etc/rc" jail_exec_stop="/bin/sh /etc/rc.shutdown" > jail_test_rootdir="/usr/local/jails/test" > jail_test_hostname="test-jail.local" > jail_test_ip="xxx.xxx.10.160" > jail_test_devfs_enable="YES" > jail_test_procfs_enable="YES" > jail_test_flags="-l -U root" ^^^^^^^^^^^^^^^ The jail_test_flags is unnecessary. [...] > > I just saw that the file "/usr/local/jails/test/etc/master.passwd" is empty... > > I try add "root" user: > > open jail: > > # jail /usr/local/jails/test/ test xxx.xxx.10.160 /bin/csh > > # adduser > > I have: > > =========================================================== > Username: root > Full name: > Uid (Leave empty for default): > > Login group [root]: Login group is root. Invite root into other groups? []: > Login class [default]: > Shell (sh csh tcsh date nologin) [sh]: > Home directory [/home/root]: > > Home directory permissions (Leave empty for default): Use > password-based authentication? [yes]: > Use an empty password? (yes/no) [no]: > Use a random password? (yes/no) [no]: > Enter password: > Enter password again: > Lock out the account after creation? [no]: > Username : root > Password : ***** > Full Name : > Uid : 1001 > Class : > Groups : root > Home : /home/root > Home Mode : > Shell : /bin/sh > Locked : no > OK? (yes/no): y > pwd_mkdb: root uid should be 0 > pwd_mkdb: at line #1 > pwd_mkdb: /etc/master.passwd: Inappropriate file type or format > pw: user 'root' disappeared during update > adduser: ERROR: There was an error adding user (root). > Add another user? (yes/no): > =========================================================== You can't just add the root account. The jail/system should already come with everything. It seems like you didn't populate the jail, that is why there are many missing pieces. What steps did you take to make your jail? Regards, Mikhail. -- Mikhail Goriachev Webanoide From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 07:37:46 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97996106566B for ; Sun, 20 Jul 2008 07:37:46 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 577AC8FC08 for ; Sun, 20 Jul 2008 07:37:45 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EEF4819E023; Sun, 20 Jul 2008 09:37:43 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D939819E019; Sun, 20 Jul 2008 09:37:41 +0200 (CEST) Message-ID: <4882EB5C.20206@quip.cz> Date: Sun, 20 Jul 2008 09:38:04 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: jeno.kiev@gmail.com References: <488233B0.1000904@webanoide.org> <48825D18.1010001@webanoide.org> In-Reply-To: <48825D18.1010001@webanoide.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-jail@freebsd.org Subject: Re: getpwnam: root: No such file or directory X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 07:37:46 -0000 Mikhail Goriachev wrote: > å×ÇÅÎÉÊ ûÁÐÏ×ÁÌ wrote: > >> Thanks! >> >> I try: >> # /usr/sbin/pwd_mkdb -d /usr/local/jails/test/etc -p >> /usr/local/jails/test/etc/master.passwd >> >> and I have: >> >> # pwd_mkdb: /usr/local/jails/test/etc/master.passwd: No such file or >> directory >> >> then I make empty file: >> >> # touch /usr/local/jails/test/etc/master.passwd >> >> all good! no errors, no messages... >> >> I try start jail again, and I have: =\ >> >> ============================= >> /etc/rc.conf: //: Permission denied >> Configuring jails:. >> Starting jails: cannot start jail "test": >> jail: root: no such user >> ============================= Did you run "make distribution DESTDIR=/path/to/jail/dir" or something similar? I don't think so and your jail environment seems uncomplete! Read the man page example section: http://www.freebsd.org/cgi/man.cgi?query=jail&sektion=0&manpath=FreeBSD+7.0-RELEASE and Handbook to build jail properly http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html > The jail hasn't been completely populated. > > As Miroslav already stated, can you show us the rc.conf of the host and > the way you populated the jail? > > > Regards, > Mikhail. > From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 08:20:31 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DED921065671 for ; Sun, 20 Jul 2008 08:20:31 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from smtp.tal.navalradio.cl (smtp.tal.navalradio.cl [201.236.67.155]) by mx1.freebsd.org (Postfix) with ESMTP id 6B0BB8FC0C for ; Sun, 20 Jul 2008 08:20:31 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from [172.18.96.244] ([172.18.96.244]) (authenticated bits=0) by smtp.tal.navalradio.cl (8.13.8/8.13.8) with ESMTP id m6K8HnJM002545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 Jul 2008 08:17:57 GMT (envelope-from mikhailg@webanoide.org) Message-ID: <4882F53C.6060604@webanoide.org> Date: Sun, 20 Jul 2008 04:20:12 -0400 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0KjQsNC/0L7QstCw0Ls=?= , freebsd-jail@freebsd.org References: <488233B0.1000904@webanoide.org> <48825D18.1010001@webanoide.org> <48828965.5000802@webanoide.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: getpwnam: root: No such file or directory X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 08:20:32 -0000 Евгений Шаповал wrote: > Thanks! > >> You can't just add the root account. The jail/system should already come >> with everything. It seems like you didn't populate the jail, that is why >> there are many missing pieces. >> >> What steps did you take to make your jail? > > 1. download freebsd sources > 2. build jail, I use this script: > =================================================== > #!/bin/sh > > case "$2" in > create) > jail_dir="$1" > mkdir -p ${jail_dir} > cd /usr/src > mkdir -p ${jail_dir} > make world DESTDIR=${jail_dir} > cd /usr/src/etc ^^^^^^^^^^^^^^^ You should not change into /usr/src/etc. Remove that line from the script. > make distribution DESTDIR=${jail_dir} This is the line that populates most of your jail but it fails because it is executed from /usr/src/etc instead of /usr/src. That is why you get missing pieces. So part of your script should look something like: mkdir -p ${jail_dir} cd /usr/src make installworld DESTDIR=${jail_dir} make distribution DESTDIR=${jail_dir} mount_devfs devfs ${jail_dir}/dev You should read the Jails section in the Handbook and also the man page for jail for further details. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html Regards, Mikhail. -- Mikhail Goriachev Webanoide From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 09:15:08 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 138B21065670 for ; Sun, 20 Jul 2008 09:15:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id BEFF28FC19 for ; Sun, 20 Jul 2008 09:15:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id AEC8541C67B; Sun, 20 Jul 2008 11:15:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id Tko4d4T11gHt; Sun, 20 Jul 2008 11:15:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 614FB41C677; Sun, 20 Jul 2008 11:15:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id D7B7144487F; Sun, 20 Jul 2008 09:11:02 +0000 (UTC) Date: Sun, 20 Jul 2008 09:11:02 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Giulio Ferro In-Reply-To: <4881C486.8040401@zirakzigil.org> Message-ID: <20080720090947.F57089@maildrop.int.zabbadoz.net> References: <4881C486.8040401@zirakzigil.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, freebsd-jail@freebsd.org Subject: Re: multi-ip jail patch on freebsd 7 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-jail@freebsd.org List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 09:15:08 -0000 On Sat, 19 Jul 2008, Giulio Ferro wrote: > Since the multi-ip jail feature isn't yet part of the base system (why???) > I was searching the internet for a suitable patch to apply manually. > > I couldn't find any. The one I found didn't apply cleanly to a 7 system. > Can any of you point me to a working multi-ip jail patch? freebsd-jail@ would be a better list. I would happily point you at one but my webserver is down at the moment. I hope you can waut anther few days as I am swamped... -- Bjoern A. Zeeb Stop bit received. Insert coin for new game. From owner-freebsd-jail@FreeBSD.ORG Sun Jul 20 18:11:48 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFD0E106564A for ; Sun, 20 Jul 2008 18:11:48 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from smtp.tal.navalradio.cl (smtp.tal.navalradio.cl [201.236.67.155]) by mx1.freebsd.org (Postfix) with ESMTP id 37FFB8FC13 for ; Sun, 20 Jul 2008 18:11:47 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from [172.18.64.125] ([172.18.64.125]) (authenticated bits=0) by smtp.tal.navalradio.cl (8.13.8/8.13.8) with ESMTP id m6KI93Ie012175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 Jul 2008 18:09:12 GMT (envelope-from mikhailg@webanoide.org) Message-ID: <48837FD3.6020308@webanoide.org> Date: Sun, 20 Jul 2008 14:11:31 -0400 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0KjQsNC/0L7QstCw0Ls=?= , freebsd-jail@freebsd.org References: <488233B0.1000904@webanoide.org> <48825D18.1010001@webanoide.org> <48828965.5000802@webanoide.org> <4882F53C.6060604@webanoide.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: getpwnam: root: No such file or directory X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 18:11:48 -0000 Please make sure you also reply to the list. Евгений Шаповал wrote: > Mikhail Goriachev, thanks!!! > I remove line "cd /usr/src/etc", make installworld and now all good! =) > root user exists, I add user and login from ssh to jail =) No worries. I'm glad it finally got going for you. > but I have 2 questions: > 1. when I start jail (/etc/rc.d/jail start), I have: > > /etc/rc.conf: //: Permission denied > Configuring jails:. > Starting jails: host1-jail.local. > > how correct error on first line? =\ Check file permissions for both, the jail and main OS: # ls -l /etc/rc.conf # ls -l /usr/local/jails/test/etc/rc.conf They both should be 644. Also check the logs: /var/log/jail_test_console.log /var/log/messages > > 2. MAC in jail and main os identical?! Yes they are identical because they both share the same network card. > how you see MAC "00:14:85:3a:58:90" in jail and main os identical oO > I need internet connection in my jail and main os =( but if jail and > main os have identical mac, it's unreal =( in LAN can't be 2 computers > with one mac =( or I something confuse?! =\ In your case this is only one computer with multiple IPs (aliases). This is normal behaviour. As of sharing the Internet connection, well it all depends on your resources and how you design the system. For instance, in some situations (single interface hosts) I bind my jails to lo0 and then use NAT to share the Internet. If you have access to multiple public IPs then you can bind jails directly to the public interface. +------ eth0 ------+ | | | lo0 | | | +------------------+ In other situations, where jails should be reached from the LAN, I bind them to the interface that faces the LAN (eth1) instead of lo0 or the Internet (eth0) and NAT is also used here. +------ eth0 ------+ | | | lo0 | | | +------ eth1 ------+ Basically everything depends on your needs and goals. Regards, Mikhail. -- Mikhail Goriachev Webanoide From owner-freebsd-jail@FreeBSD.ORG Mon Jul 21 11:06:58 2008 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04ED91065687 for ; Mon, 21 Jul 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D7B968FC13 for ; Mon, 21 Jul 2008 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6LB6vv9031915 for ; Mon, 21 Jul 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6LB6vaO031911 for freebsd-jail@FreeBSD.org; Mon, 21 Jul 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jul 2008 11:06:57 GMT Message-Id: <200807211106.m6LB6vaO031911@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 11:06:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/89528 jail [jail] [patch] impossible to kill a jail o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail 2 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with o kern/68192 jail [quotas] [jail] Cannot use quotas on jailed systems o kern/72498 jail [libc] [jail] timestamp code on jailed SMP machine gen o kern/74314 jail [resolver] [jail] DNS resolver broken under certain ja o kern/84215 jail [jail] [patch] wildcard ip (INADDR_ANY) should not bin o kern/89989 jail [jail] [patch] Add option -I (ASCII 73) PID to specif o kern/97071 jail [jail] [patch] add security.jail.jid sysctl o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o kern/120753 jail [jail] Zombie jails (jailed child process exits while 9 problems total. From owner-freebsd-jail@FreeBSD.ORG Tue Jul 22 22:46:05 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92436106566B for ; Tue, 22 Jul 2008 22:46:05 +0000 (UTC) (envelope-from prvs=1089d23ebf=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 2C7A08FC17 for ; Tue, 22 Jul 2008 22:46:04 +0000 (UTC) (envelope-from prvs=1089d23ebf=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1216765704; x=1217370504; q=dns/txt; h=Received: Message-ID:From:To:Subject:Date:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=+rke7MoIFXk1yECHBwK4WKfroHaiO865eo C6kfhpyQM=; b=p9r8exOdNX27s+su+eCJ4RNrqlajiWkp7ixjC1MlMXm4hpIk44 QTSc19caCobSiyc8gQmOlvhz40g6hWl9TqQWDhqx4h/8VQfZvkFLZfvQDJjuSp7C cCkh7ZdegbrCE0R8xsxJOyX+dz3yLTnJgPATurKQJaqUU500fN0VH8kfg= X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-14.7 required=6.0 tests=BAYES_00, FORGED_MUA_OUTLOOK, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.8 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v9.6.6) with ESMTP id md50005939164.msg for ; Tue, 22 Jul 2008 23:28:23 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 212.135.219.182 X-Return-Path: prvs=1089d23ebf=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-jail@freebsd.org Message-ID: <527A23E52F1E45E5A5642A8099A87981@multiplay.co.uk> From: "Steven Hartland" To: Date: Tue, 22 Jul 2008 23:28:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Spam-Processed: mail1.multiplay.co.uk, Tue, 22 Jul 2008 23:28:23 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Tue, 22 Jul 2008 23:28:24 +0100 Subject: sockets still open for shutdown jail days later X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 22:46:05 -0000 I shutdown a jail on one of our 7.0-release boxes the other day and while doing some more maintenance on one of the other jails I notice the other still listed in jls. After doing some digging I found we have 60 sockets still open for said jail. tcp4 0 58500 X.X.X.X.80 Y.Y.Y.Y.26696 LAST_ACK tcp4 0 53845 X.X.X.X.80 Y.Y.Y.Y.64765 LAST_ACK ... The jail was shutdown a few days ago now so I would have expected any lingering sockets to have expired and been cleaned up but clearly not. This interface is also no longer bound to the source IP. So is this issue in the jail code or a problem in the IP stack? Anyone seen this before? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-jail@FreeBSD.ORG Thu Jul 24 21:14:14 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A01B41065678 for ; Thu, 24 Jul 2008 21:14:14 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.freebsd.org (Postfix) with SMTP id D0C738FC1B for ; Thu, 24 Jul 2008 21:14:13 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 30493 invoked by uid 98); 24 Jul 2008 20:47:31 -0000 Received: from 192.168.229.11 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:1(192.168.229.11):. Processed in 0.040227 secs); 24 Jul 2008 20:47:31 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.229.11):. Processed in 0.040227 secs) Received: from unknown (HELO aurynhome1ws2.zirakzigil.org) (postmaster@zirakzigil.org@192.168.229.11) by 0 with SMTP; 24 Jul 2008 20:47:31 -0000 Message-ID: <4888EA5D.1050704@zirakzigil.org> Date: Thu, 24 Jul 2008 22:47:25 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: <4881C486.8040401@zirakzigil.org> <20080720090947.F57089@maildrop.int.zabbadoz.net> In-Reply-To: <20080720090947.F57089@maildrop.int.zabbadoz.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: multi-ip jail patch on freebsd 7 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 21:14:14 -0000 Bjoern A. Zeeb wrote: >> Since the multi-ip jail feature isn't yet part of the base system >> (why???) >> I was searching the internet for a suitable patch to apply manually. >> >> I couldn't find any. The one I found didn't apply cleanly to a 7 system. >> Can any of you point me to a working multi-ip jail patch? > > freebsd-jail@ would be a better list. > > I would happily point you at one but my webserver is down at the > moment. I hope you can waut anther few days as I am swamped... > Thanks anyway, I'll ask there... From owner-freebsd-jail@FreeBSD.ORG Thu Jul 24 21:16:36 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8DD5106567F for ; Thu, 24 Jul 2008 21:16:36 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from aurynhome1sv1.zirakzigil.org (mail.zirakzigil.org [82.63.178.63]) by mx1.freebsd.org (Postfix) with SMTP id AB37E8FC30 for ; Thu, 24 Jul 2008 21:16:35 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: (qmail 30529 invoked by uid 98); 24 Jul 2008 20:49:53 -0000 Received: from 192.168.229.11 by aurynhome1sv1.zirakzigil.org (envelope-from , uid 89) with qmail-scanner-1.25 ( Clear:RC:1(192.168.229.11):. Processed in 0.03913 secs); 24 Jul 2008 20:49:53 -0000 X-Qmail-Scanner-Mail-From: auryn@zirakzigil.org via aurynhome1sv1.zirakzigil.org X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.229.11):. Processed in 0.03913 secs) Received: from unknown (HELO aurynhome1ws2.zirakzigil.org) (postmaster@zirakzigil.org@192.168.229.11) by 0 with SMTP; 24 Jul 2008 20:49:53 -0000 Message-ID: <4888EAEC.2040303@zirakzigil.org> Date: Thu, 24 Jul 2008 22:49:48 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: multi-ip X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 21:16:36 -0000 Hello all. Can anyone point me to a working and reasonably stable patch for multi-ip jails in freebsd 7 amd64? I googled around, but I couldn't find any. Thanks in advance. From owner-freebsd-jail@FreeBSD.ORG Fri Jul 25 08:19:05 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD1B11065670 for ; Fri, 25 Jul 2008 08:19:05 +0000 (UTC) (envelope-from jille@quis.cx) Received: from mulgore.hexon-is.nl (mulgore.hexon-is.nl [82.94.237.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC058FC20 for ; Fri, 25 Jul 2008 08:19:05 +0000 (UTC) (envelope-from jille@quis.cx) X-Hexon-MailScanner-Watermark: 1217577797.11755@mCh8fSDI2mGxC7pQ3QcMcw Received: from [10.0.0.72] ([10.15.16.6]) (authenticated bits=0) by mulgore.hexon-is.nl (8.14.1/8.13.8) with ESMTP id m6P831Q2004343; Fri, 25 Jul 2008 10:03:02 +0200 Message-ID: <488988B7.3000503@quis.cx> Date: Fri, 25 Jul 2008 10:03:03 +0200 From: Jille User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Giulio Ferro References: <4888EAEC.2040303@zirakzigil.org> In-Reply-To: <4888EAEC.2040303@zirakzigil.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Hexon-MailScanner-Information: Please contact the ISP for more information X-Hexon-MailScanner-ID: m6P831Q2004343 X-Hexon-MailScanner: Found to be clean X-Hexon-MailScanner-From: jille@quis.cx Cc: freebsd-jail@freebsd.org Subject: Re: multi-ip X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2008 08:19:05 -0000 Hello Giulio, You can find them here: http://sources.zabbadoz.net/freebsd/jail.html Unfortunately the webserver is moving atm, so you'll have to wait. Bjoern Zeeb will probably send a message to the list when they are back online. -- Jille Giulio Ferro wrote: > Hello all. > > Can anyone point me to a working and reasonably stable patch > for multi-ip jails in freebsd 7 amd64? I googled around, but I > couldn't find any. > > Thanks in advance. > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"