iocage jail in FN 11.1 - networking not working

Status
Not open for further replies.
Joined
Dec 2, 2015
Messages
730
I'm trying to set up an iocage jail on FreeNAS-11.1, and I can't get networking to work. I can't find many people complaining about similar issues, so I must have mucked up something very simple. I've read what minimal docs I can find. I've restarted the jail, and the whole FreeNAS host, but that didn't help. Any advice is greatly appreciated.

jail properties:

Code:
CONFIG_VERSION:9
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:on
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:192.168.0.1
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:plex
host_hostuuid:plex
host_time:yes
hostid:84885ddb-b7ba-11e5-9e08-0cc47a6c85e8
interfaces:vnet0:bridge0
ip4:new
ip4_addr:vnet0|192.168.0.221/24
ip4_saddrsel:1
ip6:new
ip6_addr:none
ip6_saddrsel:1
jail_zfs:off
jail_zfs_dataset:iocage/jails/plex/data
jail_zfs_mountpoint:none
last_started:2017-12-27 22:16:09
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-p6
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:on
vnet0_mac:02ff6014fa09,02ff6014fa0a
vnet1_mac:none
vnet2_mac:none
vnet3_mac:none
wallclock:off
 
Joined
Dec 2, 2015
Messages
730
Experimenting a bit more, I can get networking going if I don't use VNET. I selected igb0 as the interface, and deselected VNET, and now I can ping in and out of the jail. Now to see if I can get plex happy in there, so I can start shutting down the warden jails.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
I have run into the same thing. I was only able to get networking to work in a new iocage jail by not using VNET and specifying the bridge0 interface on my machine. Haven't gotten as far as getting plex to work yet though.

There is at least one walkthrough on the forums though detailing how to get plex up and running in in 11.1 iocage. Might reference that if you're stuck.
 
Joined
Dec 2, 2015
Messages
730
I got two iocage jails up and working (one for plex and one for a bunch of video transcoding tools), so those warden jails have been stopped. Owncloud is next up.
 

Patrick1227

Cadet
Joined
Apr 1, 2017
Messages
5
Hi guys I am a noob. I am having the same issue. Any new iocage jail I create doesn't have any internet access. Would you be able to explain how you fixed this. Thank you
 
Joined
Dec 2, 2015
Messages
730
Hi guys I am a noob. I am having the same issue. Any new iocage jail I create doesn't have any internet access. Would you be able to explain how you fixed this. Thank you
In the CLI (or by making the equivalent selections in the GUI):
Code:
iocage stop <JAIL NAME>
iocage set vnet=off <JAIL NAME>
iocage set ip4_addr=<INTERFACE>|<IP ADDRESS>/24 <JAIL NAME>
iocage start <JAIL NAME>


In my case, the following works, but you may need different values for <INTERFACE>, <IP ADDRESS> and <JAIL NAME>
Code:
iocage stop plex2
iocage set vnet=off plex2
iocage set ip4_addr=igb0|192.168.0.221/24 plex2
iocage start plex2
 

Patrick1227

Cadet
Joined
Apr 1, 2017
Messages
5
In the CLI (or by making the equivalent selections in the GUI):
Code:
iocage stop <JAIL NAME>
iocage set vnet=off <JAIL NAME>
iocage set ip4_addr=<INTERFACE>|<IP ADDRESS>/24 <JAIL NAME>
iocage start <JAIL NAME>


In my case, the following works, but you may need different values for <INTERFACE>, <IP ADDRESS> and <JAIL NAME>
Code:
iocage stop plex2
iocage set vnet=off plex2
iocage set ip4_addr=igb0|192.168.0.221/24 plex2
iocage start plex2
Thank you. It work out


Sent from my iPhone using Tapatalk
 
Status
Not open for further replies.
Top