On 2/4/2014 6:19 AM, Beeblebrox wrote:
I have two NIC's, re1 faces internal LAN. re1 also has a jail running on it
for diskless clients (tftp, dhcp). IP assigned to re1 by /etc/rc.conf and
jail.conf are same: ip4.addr = 192.168.2.1/24
A /32 subnet will break diskless clients and also prevents gatewaying of
traffic from laptops connecting from internal LAN.
My problem is if I stop the jail, jail script removes IP assigned by rc.conf
(obviously). This breaks host gateway function for laptops on the LAN. Is
there a setting for jail.conf that prevents removal of jail IP on jail
shutdown? If not, the only alternative remaining is to move jail IP to
192.168.2.xx/24 (which I would rather not do).
The IP should only be brought up and down if there's an interface
mentioned in the jail config. If there's only an IP address, then the
jail will be restricted to that IP address without changing any
interfaces. I assume your jail configuration has either an
"interface" parameter, or an IP address designation like
"re1|192.168.2.1"? Just remove that part and you should be good.
Along the same lines, if you're not actually setting the interface,
you don't need to worry about a subnet mask - the jail itself doesn't
use that.
- Jamie
_______________________________________________
freebsd-jail@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"