Date: Mon, 29 Jun 2009 21:40:36 +1000 From: Sam Wun <swun2010@gmail.com> To: Michael Gmelin <freebsdusb@bindone.de> Cc: freebsd-net@freebsd.org Subject: Re: Can't login Jailed system Message-ID: <736c47cb0906290440t29873631ge04aed6cdcc1136f@mail.gmail.com> In-Reply-To: <4A48A5BA.3080709@bindone.de> References: <736c47cb0906290422y756a6a74i9029b4d27d2ade34@mail.gmail.com> <4A48A5BA.3080709@bindone.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 29, 2009 at 9:30 PM, Michael Gmelin<freebsdusb@bindone.de> wrot= e: > Sam Wun wrote: >> Hi, >> >> 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= : >> >> =A0# ifconfig >> rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1= 500 >> =A0 =A0 =A0 =A0 options=3D8<VLAN_MTU> >> =A0 =A0 =A0 =A0 ether 00:00:21:ef:27:f7 >> =A0 =A0 =A0 =A0 media: Ethernet autoselect (100baseTX <full-duplex>) >> =A0 =A0 =A0 =A0 status: active >> rl1: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 >> =A0 =A0 =A0 =A0 options=3D8<VLAN_MTU> >> =A0 =A0 =A0 =A0 ether 00:50:fc:65:78:c0 >> =A0 =A0 =A0 =A0 media: Ethernet autoselect >> =A0 =A0 =A0 =A0 status: no carrier >> fxp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 >> =A0 =A0 =A0 =A0 options=3D8<VLAN_MTU> >> =A0 =A0 =A0 =A0 ether 00:13:20:65:a9:be >> =A0 =A0 =A0 =A0 inet 192.168.1.246 netmask 0xffffff00 broadcast 192.168.= 1.255 >> =A0 =A0 =A0 =A0 inet 192.168.1.245 netmask 0xffffff00 broadcast 192.168.= 1.255 >> =A0 =A0 =A0 =A0 inet 192.168.1.235 netmask 0xffffff00 broadcast 192.168.= 1.255 >> =A0 =A0 =A0 =A0 inet 192.168.1.242 netmask 0xffffffff broadcast 192.168.= 1.242 >> =A0 =A0 =A0 =A0 media: Ethernet autoselect (100baseTX <full-duplex>) >> =A0 =A0 =A0 =A0 status: active >> plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0= mtu 1500 >> enc0: flags=3D0<> metric 0 mtu 1536 >> pflog0: flags=3D141<UP,RUNNING,PROMISC> metric 0 mtu 33204 >> pfsync0: flags=3D0<> metric 0 mtu 1460 >> =A0 =A0 =A0 =A0 syncpeer: 224.0.0.240 maxupd: 128 >> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 >> =A0 =A0 =A0 =A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 >> =A0 =A0 =A0 =A0 inet6 ::1 prefixlen 128 >> =A0 =A0 =A0 =A0 inet 127.0.0.1 netmask 0xff000000 >> twp1:# jls >> =A0 =A0JID =A0IP Address =A0 =A0 =A0Hostname =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0Path >> =A0 =A0 =A05 =A0192.168.1.242 =A0 twp5.ip6.com.au =A0 =A0 =A0 =A0 =A0 = =A0 =A0 /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 a= go. >> >> Can anyone shred some lights on me? >> >> Thanks >> Sam >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > What does: > > netstat -an | grep LISTEN > > Did you check /etc/ssh/sshd_config on the host system and check if ssh > only listens to a specific IP address (to me it seemslike it's listening > to *:22). > OK, I changed the host sshd_config setting, now I can ssh into the jailed system. Here is what I've done: twp1:~ # !jexec jexec 5 /bin/sh # top kvm_open: /boot/kernel/kernel: No such file or directory # cd etc # cat rc.conf network_interfaces=3D"" rpcbind_enable=3D"NO" sshd_enable=3D"YES" syslogd_flags=3D"-ss" mysql_enable=3D"yes" mysql_limits=3D"yes" mysql_dbdir=3D"/usr/local/var/db/mysql" # hostname twp5 # twp5 is the jailed system. Strange, I remember last time I can still have sshd and mysql running in the jailed system. Thanks > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?736c47cb0906290440t29873631ge04aed6cdcc1136f>