Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2010 09:34:28 +0800
From:      Fbsd1 <fbsd1@a1poweruser.com>
To:        =?ISO-8859-1?Q?Bal=E1zs_M=E1t=E9ffy?= <repcsike@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: jails and one dynamic ip address
Message-ID:  <4BFC7AA4.8020009@a1poweruser.com>
In-Reply-To: <AANLkTimALIbR98yC9a9GW4pPPzScgwZPh9VvooxU82la@mail.gmail.com>
References:  <4BFC5EE3.3090505@a1poweruser.com> <AANLkTimALIbR98yC9a9GW4pPPzScgwZPh9VvooxU82la@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> I get one dynamic ip address from my ISP. This is what I specify on the
>> jail for public network access. When the ip address changes on me I have to
>> manually change the ip address associated with the jail.
>>
>> Is there some method I can code so jail will all ways have public network
>> access?


 > Hi,
 >
 >
 > Sure there can be a better solution (I think :)):
 >
 > Use an rfc1918 private address range for your Jail, and use nat, to
 > forward your external interface IP to the private address of the jail.
 >
 > This can be done in ipnat, PF, or the other natting, packet filtering 
 > tools.
 >
 > Hope I understood your question :).
 >
 > Regards,
 >
 > Balázs M.
 >
The jails are on the host with LAN behind it and with ipf firewall which 
allows out anything coming from LAN private ip address. I was not able 
to get this to work until I discovered the jail needed a copy of the 
hosts /etc/resolv.conf. Now it works without any special tweaks, and the 
dymanic ip address changing causes no problems.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BFC7AA4.8020009>