Can't get iocage jail to have internet connectivity

Status
Not open for further replies.

Bernard Mentink

Contributor
Joined
Apr 2, 2016
Messages
193
Hi All,

I am trying out the new iocage jails, so created a new one using CLI, but am at a loss as to how to attach ethernet device to it .. (the instructions are not very clear)
The examples all use interface em0 as the device, I only have igb0, bridge0 and a bunch of epair(x)a devices. What device do I use?

I have old style jails around including plugins .. I am running 11.1-U2 system.

I can console into the new jail fine, but pinging anything gives me the following failure:

Code:
ping: ssend socket: Operation not permitted

Any help appreciated.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Joined
Jul 10, 2016
Messages
521
For iocage jails, make sure you have the option allow_raw_sockets set, otherwise the ping command won't work.
This option is set by default for warden jails, but not for iocage.
 

Bernard Mentink

Contributor
Joined
Apr 2, 2016
Messages
193
For iocage jails, make sure you have the option allow_raw_sockets set, otherwise the ping command won't work.
This option is set by default for warden jails, but not for iocage.
Thanks, I worked that one out.

I found my issue with connectivity also.

It seems you can't create the jail "THEN" add the interface details, you have to set the interface IP at the time of creation of the jail. At least, that is what I have found.

I now have a working jail, even got a web page running in it .. :)
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Status
Not open for further replies.
Top