The notes on this page are still a WIP
Those Who Do Not Learn History Are Doomed To Repeat It.
export JAIL=ibm export JAILHOSTNAME=ibm export JAILDOMAIN=ahlawat.com export JAILIP=86 export JAILUSER=X export JAILUSERID=1000 export JAILUSERVNC=false
/root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC
iocage exec $JAIL "mkdir /data" iocage fstab -a $JAIL /mnt/ship/$JAIL /data nullfs rw 0 0
iocage set allow_vmm=1 children_max=8 securelevel=1 allow_mount=1 enforce_statfs=1 allow_mount_devfs=1 devfs_ruleset=300 allow_mount_procfs=1 exec_start="/bin/sh /mnt/config/setup_jail.sh" $JAIL
iocage fstab -r $JAIL /mnt/ship/certs /mnt/certs nullfs ro 0 0
iocage exec $JAIL "sysrc firewall_script=/mnt/config/ipfw.rules"
iocage exec $JAIL "sysrc gateway_enable=YES" iocage exec $JAIL "sysrc natd_enable=YES" iocage exec $JAIL "sysrc natd_interface=epair0b" iocage exec $JAIL 'sysrc natd_flags="-f /mnt/config/natd.conf"'
pkg install hercules tmux
ifconfig tun186 create ifconfig tun186 inet 172.16.0.186 172.16.0.100 chmod 666 /dev/tun186
iocage restart $JAIL
iocage exec $JAIL "service ipfw restart"
iocage console $JAIL tmux #start various hercules sessions
Infrastructure: Configure pfsense DNS entry for ibm.ahlawat.com 192.168.0.86
.