Hi,
I've set up an iocage jail which shares IP with the FreeNAS host. This seem to work fine although when I stop the jail the network stops working on the host as well. Do I need to change some jail property when using shared IP?
FreeNAS version: 11.1-U5
Host ip: 172.18.0.89/24
Commands to configure the jail:
ifconfig before jail stop:
ifconfig after jail stop:
Jail properties
I've set up an iocage jail which shares IP with the FreeNAS host. This seem to work fine although when I stop the jail the network stops working on the host as well. Do I need to change some jail property when using shared IP?
FreeNAS version: 11.1-U5
Host ip: 172.18.0.89/24
Commands to configure the jail:
iocage create -r 11.1-RELEASE --name mysql_ng
iocage set ip4_addr="em0|172.18.0.89/24" mysql_ng
iocage set allow_raw_sockets="1" mysql_ng
iocage set jail_zfs=on mysql_ng
iocage fstab -a mysql_ng "/mnt/pool1/backup /mnt/backup nullfs rw 0 0"
ifconfig before jail stop:
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:25:90:23:fa:a8 hwaddr 00:25:90:23:fa:a8 inet 172.18.0.89 netmask 0xffffff00 broadcast 172.18.0.255 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
ifconfig after jail stop:
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:25:90:23:fa:a8 hwaddr 00:25:90:23:fa:a8 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
Jail properties
Code:
CONFIG_VERSION:11 allow_chflags:0 allow_mount:0 allow_mount_devfs:0 allow_mount_nullfs:0 allow_mount_procfs:0 allow_mount_tmpfs:0 allow_mount_zfs:0 allow_quotas:0 allow_raw_sockets:1 allow_set_hostname:1 allow_socket_af:0 allow_sysvipc:0 available:readonly basejail:no boot:off bpf:no children_max:0 cloned_release:11.1-RELEASE comment:none compression:lz4 compressratio:readonly coredumpsize:off count:1 cpuset:off cputime:off datasize:off dedup:off defaultrouter:none defaultrouter6:none depends:none devfs_ruleset:4 dhcp:off enforce_statfs:2 exec_clean:1 exec_fib:0 exec_jail_user:root exec_poststart:/usr/bin/true exec_poststop:/usr/bin/true exec_prestart:/usr/bin/true exec_prestop:/usr/bin/true exec_start:/bin/sh /etc/rc exec_stop:/bin/sh /etc/rc.shutdown exec_system_jail_user:0 exec_system_user:root exec_timeout:60 host_domainname:none host_hostname:mysql_ng host_hostuuid:mysql_ng host_time:yes hostid:24c2d80f-5f36-11e8-a91e-00259023faa8 hostid_strict_check:off interfaces:vnet0:bridge0 ip4:new ip4_addr:em0|172.18.0.89/24 ip4_saddrsel:1 ip6:new ip6_addr:none ip6_saddrsel:1 jail_zfs:on jail_zfs_dataset:iocage/jails/mysql_ng/data jail_zfs_mountpoint:none last_started:2018-06-15 08:26:07 login_flags:-f root mac_prefix:02ff60 maxproc:off memorylocked:off memoryuse:off mount_devfs:1 mount_fdescfs:1 mount_linprocfs:0 mount_procfs:0 mountpoint:readonly msgqqueued:off msgqsize:off nmsgq:off notes:none nsemop:off nshm:off nthr:off openfiles:off origin:readonly owner:root pcpu:off priority:99 pseudoterminals:off quota:none release:11.1-RELEASE-p10 reservation:none resolver:/etc/resolv.conf rlimits:off securelevel:2 shmsize:off stacksize:off state:up stop_timeout:30 swapuse:off sync_state:none sync_target:none sync_tgt_zpool:none sysvmsg:new sysvsem:new sysvshm:new template:no type:jail used:readonly vmemoryuse:off vnet:off vnet0_mac:none vnet1_mac:none vnet2_mac:none vnet3_mac:none vnet_interfaces:none wallclock:off