Re: Jails and loopback interfaces



On Tue, 2006-03-07 at 13:02 -0300, Ricardo A. Reis wrote:
Hi Cyril,

For access loopback inside the jail, is necessary configure in host server
alias for loopback and start jail using loopback.
Remember loopback address is all 127/8 !


I just recently tried jails but I thought 127.0.0.1 would be mapped to
the jails ip-address, which eventually gets mapped to the ip specified
in the parameter or rc.conf. I could be wrong though although my
test-jail setup confirms this on 6.1-PRERELEASE:
test-jail# telnet localhost 22
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.2p1 FreeBSD-20050903

Kind regards,

Axel Scheepers

Attachment: signature.asc
Description: This is a digitally signed message part



Relevant Pages

  • Re: Jails and IP Aliasing
    ... using firewall rules to redirect the traffic accordingly. ... Something like a loopback address inside the jail. ...
    (freebsd-questions)
  • Re: Jails and loopback interfaces
    ... I would recommend *not* trying to use 127.0.0.1. ... situation where things are trying to access the local machine and are ... just as you would with any other jail. ... For access loopback inside the jail, is necessary configure in host server ...
    (FreeBSD-Security)
  • RE: Jails and loopback interfaces
    ... good idea to use localhost as a jail IP. ... Use only loopback ... IPs (other than localhost), like the example that I wrote ... adapter and using the localhost IP. ...
    (FreeBSD-Security)
  • Re: Jails and loopback interfaces
    ... For access loopback inside the jail, is necessary configure in host server ... I would like to be able to have the database only bind on a ...
    (FreeBSD-Security)
  • Re: Jails and loopback interfaces
    ... jail 1 on 127.0.0.2 ... real IP to the jail's loopback IP. ... FWD does is to adjust the forwarding path of the packet. ... Don't use those IPs. ...
    (FreeBSD-Security)