Can't login Jailed system

Michael Gmelin freebsdusb at bindone.de
Mon Jun 29 11:30:12 UTC 2009


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:
> 
>  # ifconfig
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=8<VLAN_MTU>
>         ether 00:00:21:ef:27:f7
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> rl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=8<VLAN_MTU>
>         ether 00:50:fc:65:78:c0
>         media: Ethernet autoselect
>         status: no carrier
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=8<VLAN_MTU>
>         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 <full-duplex>)
>         status: active
> plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
> enc0: flags=0<> metric 0 mtu 1536
> pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33204
> pfsync0: flags=0<> metric 0 mtu 1460
>         syncpeer: 224.0.0.240 maxupd: 128
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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?
> 
> Thanks
> Sam
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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).






More information about the freebsd-net mailing list