From owner-freebsd-net@FreeBSD.ORG Mon Jun 29 11:30:09 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09BAC1065674; Mon, 29 Jun 2009 11:30:09 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id B63A38FC18; Mon, 29 Jun 2009 11:30:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 7115441C730; Mon, 29 Jun 2009 13:30:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id Nxf6c2+wibaB; Mon, 29 Jun 2009 13:30:06 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 2B1AC41C729; Mon, 29 Jun 2009 13:30:06 +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 259074448E6; Mon, 29 Jun 2009 11:29:27 +0000 (UTC) Date: Mon, 29 Jun 2009 11:29:26 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Sam Wun In-Reply-To: <736c47cb0906290422y756a6a74i9029b4d27d2ade34@mail.gmail.com> Message-ID: <20090629112655.R22887@maildrop.int.zabbadoz.net> References: <736c47cb0906290422y756a6a74i9029b4d27d2ade34@mail.gmail.com> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, freebsd-jail@freebsd.org Subject: Re: Can't login Jailed system X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-jail@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 11:30:09 -0000 On Mon, 29 Jun 2009, Sam Wun wrote: Hi, we've got a freebsd-jail list that I am Cc:ing. > With FreeBSD 7.2Stable, > I have done this many times before. > After about a month left the "jail" behind, now when I done a > "/etc/rc.d/jail start" and ssh into it, I ended up login to the host > system. > Here is the network configuraiton of the host system and the jail system: > > # ifconfig > rl0: flags=8843 metric 0 mtu 1500 > options=8 > ether 00:00:21:ef:27:f7 > media: Ethernet autoselect (100baseTX ) > status: active > rl1: flags=8802 metric 0 mtu 1500 > options=8 > ether 00:50:fc:65:78:c0 > media: Ethernet autoselect > status: no carrier > fxp0: flags=8843 metric 0 mtu 1500 > options=8 > ether 00:13:20:65:a9:be > inet 192.168.1.246 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.245 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.235 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.242 netmask 0xffffffff broadcast 192.168.1.242 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=108810 metric 0 mtu 1500 > enc0: flags=0<> metric 0 mtu 1536 > pflog0: flags=141 metric 0 mtu 33204 > pfsync0: flags=0<> metric 0 mtu 1460 > syncpeer: 224.0.0.240 maxupd: 128 > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > twp1:# jls > JID IP Address Hostname Path > 5 192.168.1.242 twp5.ip6.com.au /usr/jail2/twp5 > > 192.168.1.242 is the jailed system, > twp1 is the host system. > > After I login 192.168.1.242, I ended up logged in twp1 which is my host system. > Now I am stuck. I don't know how I logged in the jailed system a month ago. > > Can anyone shred some lights on me? Try to jexec 5 /bin/sh (5 is the jailID from the jls output) and check with ps if sshd is running inside the jail, and check the usual things are up and there. /bz -- Bjoern A. Zeeb The greatest risk is not taking one.