loopback in jail

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Fri Nov 12 01:55:09 UTC 2010


On Thu, 11 Nov 2010, Andrei Kolu wrote:

> OK, I tried this way:
>
> ezjail config:
> export jail_crashtest_ip="194.xxx.yyy.22,127.0.0.1"
>
> I have loopback ip address now:
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>        options=3<RXCSUM,TXCSUM>
>        inet 127.0.0.1 netmask 0xff000000
>
> But, can't bind anything to 127.0.0.1 anyway. Is this a bug or something?

No, it's intentional. You would bind to your public 194.x.x.x IP.

Quoting from jail(2):

      All connec-
      tions to/from the loopback address (127.0.0.1 for IPv4, ::1 for IPv6)
      will be changed to be to/from the primary address of the jail for the
      given address family.

/bz

-- 
Bjoern A. Zeeb                              Welcome a new stage of life.
         <ks> Going to jail sucks -- <bz> All my daemons like it!
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html


More information about the freebsd-jail mailing list