# ___________________________________________ # Common configs for all jails # ___________________________________________ host.hostname = "$name"; path = "/jails/mnt/$name"; mount.fstab = "/jails/fstab/${name}"; exec.clean; exec.system_user = "root"; exec.jail_user = "root"; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.consolelog = "/var/log/jail/${name}.log"; stop.timeout=60; mount.devfs; #devfs_ruleset="5"; #devfs ruleset for this jail vnet; vnet.interface = "ng0_${name}"; # vnet interface(s) exec.prestart += "jng bridge ${name} em1"; # bridge interface(s) # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238326 exec.prestop = "ifconfig "ng0_${name}" -vnet $name"; #exec.poststop = "sleep 2"; exec.poststop += "jng shutdown ${name}"; # destroy interface(s) # Another way... But not using it. #exec.prestart += "/usr/sbin/jib addm ${name} em1"; #exec.poststop += "/usr/sbin/jib destroy ${name}"; allow.raw_sockets; allow.reserved_ports; # ___________________________________________ # LEGACY JAILS # ___________________________________________ nwn { # ip4.addr=10.0.0.2; assigned inside the jail allow.chflags; host.hostname = nwn; } starter { # ip4.addr=10.0.0.3; assigned inside the jail allow.chflags; host.hostname = starter.nls.us; } nls_O { # ip4.addr=10.0.0.10; assigned inside the jail host.hostname = original.nls.us; } # ___________________________________________ # BASE JAILS # ___________________________________________ base_11 { # ip4.addr=10.0.0.111; assigned inside the jail mount.fstab = ""; path = "/jails/base/11.2"; allow.chflags; } base_12_1 { # ip4.addr=10.0.0.112; assigned inside the jail mount.fstab = ""; path = "/jails/base/12.1"; allow.chflags; } base_12_1_p9 { # ip4.addr=10.0.0.112; assigned inside the jail mount.fstab = ""; path = "/jails/base/12.1.p9"; allow.chflags; } # ___________________________________________ # LOCAL JAILS # ___________________________________________ nls_11 { # ip4.addr=10.0.0.211; assigned inside the jail allow.chflags; } nls_12_1 { # ip4.addr=10.0.0.212; assigned inside the jail allow.chflags; } # ___________________________________________ # NLS JAILS # ___________________________________________ # Development Servers dev { # ip4.addr=10.10.0.1; assigned inside the jail host.hostname = dev.nls.us; } db { # ip4.addr=10.10.0.100; assigned inside the jail host.hostname = db.nls.us; } # Application Servers # ___________________________________________ app_1 { # ip4.addr=10.10.1.1; assigned inside the jail host.hostname = 1.app.nls.us; } app_2 { # ip4.addr=10.10.1.2; assigned inside the jail host.hostname = 2.app.nls.us; } # Database Proxies # ___________________________________________ proxy_1 { # ip4.addr=10.10.10.1; assigned inside the jail host.hostname = 1.proxy.nls.us; } # Account DB # ___________________________________________ ac1_0 { # ip4.addr=10.11.0.1; assigned inside the jail host.hostname = 0.ac1.nls.us; } ac1_800 { # ip4.addr=10.11.16.1; assigned inside the jail host.hostname = 800.ac1.nls.us; } ac1_sp_0 { # ip4.addr=10.11.0.200; assigned inside the jail host.hostname = 0.sp.ac1.nls.us; } ac2_0 { # ip4.addr=10.11.32.1; assigned inside the jail host.hostname = 0.ac2.nls.us; } ac2_800 { # ip4.addr=10.11.48.1; assigned inside the jail host.hostname = 800.ac2.nls.us; } ac2_sp_0 { # ip4.addr=10.11.32.200; assigned inside the jail host.hostname = 0.sp.ac2.nls.us; } # Events DB # ___________________________________________ ev1_0 { # ip4.addr=10.12.0.1; assigned inside the jail host.hostname = 0.ev1.nls.us; } ev1_800 { # ip4.addr=10.12.16.1; assigned inside the jail host.hostname = 800.ev1.nls.us; } ev1_sp_0 { # ip4.addr=10.12.0.200; assigned inside the jail host.hostname = 0.sp.ev1.nls.us; } ev2_0 { # ip4.addr=10.12.32.1; assigned inside the jail host.hostname = 0.ev2.nls.us; } ev2_800 { # ip4.addr=10.12.48.1; assigned inside the jail host.hostname = 800.ev2.nls.us; } ev2_sp_0 { # ip4.addr=10.12.32.200; assigned inside the jail host.hostname = 0.sp.ev2.nls.us; } # Location DB # ___________________________________________ # A group lo1_a_0 { # ip4.addr=10.13.0.1; assigned inside the jail host.hostname = 0.a.lo1.nls.us; } lo1_a_25 { # ip4.addr=10.13.0.26; assigned inside the jail host.hostname = 25.a.lo1.nls.us; } lo1_a_sp_0 { # ip4.addr=10.13.0.193; assigned inside the jail host.hostname = 0.sp.a.lo1.nls.us; } # B group lo1_b_0 { # ip4.addr=10.13.0.65; assigned inside the jail host.hostname = 0.b.lo1.nls.us; } lo1_b_25 { # ip4.addr=10.13.0.90; assigned inside the jail host.hostname = 25.b.lo1.nls.us; } lo1_b_sp_0 { # ip4.addr=10.13.0.213; assigned inside the jail host.hostname = 0.sp.b.lo1.nls.us; } # A group lo2_a_0 { # ip4.addr=10.13.32.1; assigned inside the jail host.hostname = 0.a.lo2.nls.us; } lo2_a_25 { # ip4.addr=10.13.32.26; assigned inside the jail host.hostname = 25.a.lo2.nls.us; } lo2_a_sp_0 { # ip4.addr=10.13.32.193; assigned inside the jail host.hostname = 0.sp.a.lo2.nls.us; } # B group lo2_b_0 { # ip4.addr=10.13.32.65; assigned inside the jail host.hostname = 0.b.lo2.nls.us; } lo2_b_25 { # ip4.addr=10.13.32.90; assigned inside the jail host.hostname = 25.b.lo2.nls.us; } lo2_b_sp_0 { # ip4.addr=10.13.32.213; assigned inside the jail host.hostname = 0.sp.b.lo2.nls.us; }