# grep -v 6 /etc/jail.conf /etc/jail.conf.d/54-syncthing.conf /etc/jail.conf.d/99-external.conf /etc/jail.conf:path = "/usr/local/jails/containers/$name"; /etc/jail.conf:host.hostname = "$name.popho.be"; /etc/jail.conf:exec.start = "/bin/sh /etc/rc"; /etc/jail.conf:exec.stop = "/bin/sh /etc/rc.shutdown jail"; /etc/jail.conf:exec.clean; /etc/jail.conf:mount.devfs; /etc/jail.conf:#mount.fstab = "/etc/jail.conf.d/$name.fstab"; # the file MUST exist :( /etc/jail.conf: /etc/jail.conf:#Ping /etc/jail.conf:allow.raw_sockets; /etc/jail.conf: /etc/jail.conf:# Include configurations from standard locations. /etc/jail.conf:.include "/etc/jail.conf.d/*.conf"; /etc/jail.conf.d/54-syncthing.conf:ext.st { /etc/jail.conf.d/54-syncthing.conf: $id = "54"; /etc/jail.conf.d/54-syncthing.conf:} /etc/jail.conf.d/99-external.conf:ext.* { /etc/jail.conf.d/99-external.conf: vnet; /etc/jail.conf.d/99-external.conf: vnet.interface = "${if}b"; /etc/jail.conf.d/99-external.conf: $br = "bridge17"; /etc/jail.conf.d/99-external.conf: $if = "epair${id}"; /etc/jail.conf.d/99-external.conf: /etc/jail.conf.d/99-external.conf: exec.prestart += "ifconfig ${if} create up"; /etc/jail.conf.d/99-external.conf: exec.prestart += "ifconfig ${if}a up descr jail:${name}"; /etc/jail.conf.d/99-external.conf: exec.prestart += "ifconfig ${br} addm ${if}a up"; /etc/jail.conf.d/99-external.conf: exec.start += "ifconfig ${if}b ${ip} up"; /etc/jail.conf.d/99-external.conf: exec.start += "route add default ${gw}"; /etc/jail.conf.d/99-external.conf: exec.poststop += "ifconfig ${if}a destroy"; /etc/jail.conf.d/99-external.conf:}