Am in the task of creating multiple Jail. I followed these steps for that,
1.
2. created /etc/jail.product.conf having these values;
3. and for Internet access /etc/ipfw.rules
4. Edited /etc/rc.conf with these value
I am able to run Jail successfully with the steps mentioned here.
The issue comes when I created the second Jail, I have changed the values like loopback IP and other required values. But it just stops running first Jail.
Could anyone tell me what should I change here to run Jails parallelly?
1.
bsdinstall jail /var/jail/product
2. created /etc/jail.product.conf having these values;
Code:
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
path = "/var/jail/product";
product{
host.hostname = "product.intra.ogris.net";
ip4.addr = "lo1|10.0.0.1";
}
Code:
nat 1 config if em0 same_ports
add nat 1 ip from any to any via em0
add allow ip from any to any
4. Edited /etc/rc.conf with these value
Code:
kld_list="ipfw_nat"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="/etc/ipfw.rules"
I am able to run Jail successfully with the steps mentioned here.
The issue comes when I created the second Jail, I have changed the values like loopback IP and other required values. But it just stops running first Jail.
Could anyone tell me what should I change here to run Jails parallelly?