IOCAGE on a VPS

Setting up an IOCAGE jail on my home system involves adding these lines to /etc/rc/conf

Code:
ifconfig_em0="DHCP"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0 up"

What do I do on my VPS?

Code:
ifconfig_vtnet0="DHCP"
=========>cloned_interfaces="bridge0" ???????????/
ifconfig_vtnet0_ipv6="inet6 accept_rtadv"

I guess I need an 'ifconfig_bridge0'

Any suggestions?

I'm really out of my depth here.
 
Looks like I have screwed up the interface and can't even ping 8.8.8.8 from within my host.

After removing the lines I added and rebooted I can now ping, but am no nearer to getting this working.

This is what I have on my home server:
Code:
ifconfig_em0="DHCP"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0 up"

The IOCAGE docs do not mentioned cloned interaces, but this entry was suggested here and it has been working fine.

Do I need to add the same lines with appropriate changes to my VPS?

On my VPS I have vtnet0 instead of em0.
There is also ifconfig_vtnet0_ipv6="inet6 accept_rtadv"
 
You cannot bridge your jails with your external interface on your VPS. You do need a bridge (to attach your jails to) but it'll be disconnected from your external interface, so this "network" will be entirely local. Then you set up NAT and such so your jails can connect to the outside world.
 
Back
Top