Date: Tue, 10 Jun 2014 20:20:41 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-jail@freebsd.org Subject: Re: Assign Lookback address 127.0.0.1 to jail Message-ID: <5397A0D9.403@freebsd.org> In-Reply-To: <53979DA8.60002@sky-ip.org> References: <53979DA8.60002@sky-ip.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BVhMS0lKlQaVC6l70AshcOpJpA23aPXNM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2014-06-10 20:07, s7r@sky-ip.org wrote: > Hi, >=20 > Operating system is FreeBSD 10.0 64 Bit >=20 > I have installed ezjail from ports and properly configured a jail with > its own static and dedicated IP address. Everything works good, it's > just that I have an application which requires to talk to another one > via RPC on IP 127.0.0.1, and I have noticed the jail does not have a > lo0 interface or localhost 127.0.0.1 IP address. >=20 > This is bad because the application has no choice but to bind to the > public IP address assigned to the jail, and it's not safe. >=20 > How can I add a lo0 interface with IP 127.0.0.1 to a jail? >=20 > Thanks in advance. > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"= >=20 Does it have to be 127.0.0.1? You can add an alias like 127.0.0.2 to the lo0 interface and use that. Inside the jail, 127.0.0.1 is mapped to the IP of the jail. Using ezjail, you can also allocate more than 1 IP address to a jail by comma separating them You can also make it automatically alias the IPs for you with the syntax:= em0|192.168.0.10,lo0|127.0.0.2 etc --=20 Allan Jude --BVhMS0lKlQaVC6l70AshcOpJpA23aPXNM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTl6DbAAoJEJrBFpNRJZKfDGoP/3s7PBq7QHA1o/4hn2Mx/vZq sbqRlXIeQVCkTgpw8tt5WayfdmgX+8UNU+KUiUt7qG9X21cFvvjUFm0EJmtvkBxG ipsZKac8wwoXWBIS6lMB9cLfGxkrek2Nr3GJ0/w4g83E538ZQXn05n7upYWXdKeN 2lgC1RHrK4W2SEvqa958UFDerl7plU8YxTgvzSa5xvz1dGKS484XY+nkZOIAldjX SkAYUgsYWSP6JabrlM99BGKDdybKsFNfor7QN3zNsYxNn6rywIPJPgDctCmCEn4s bJPVX/evri66n3KJoM6vx73W6VaFe5JvJmnf90Pvkw5UQjL74dXplHpcOtbqforC KhLB5g7qN0zENc168qpN37MQCmq3aYjuLZqjvjTOXRLc1Gc18GaR9DKKAab6D5Oh 62msKCPGQ8coBrO+mRi2gsCk5y7+VTG+uztvwG4z9nQMFXgykKXv9/98RX3Ta/hm ULM+ClOpn/evl0xJBJbQxiTR04Fn6evvnliwTgLSLsDqmdh+YtDSPN5J9LYYf0YL TLz+8+IluJrB4BJHcD1gDfgG0EQ5M8GaiZjfoux/+GCk8tot+7xOEt1rQsA9O4HW V3VB5oi2UjJcu+bPSDBLa5X6TFxHg5eHf9DUeJ6iqBO6nnY1QDH4Wb+Mk/RHZVTi R8md13GMFcxfJDqBtAb8 =um75 -----END PGP SIGNATURE----- --BVhMS0lKlQaVC6l70AshcOpJpA23aPXNM--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5397A0D9.403>