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=95 export JAILUSER=X export JAILUSERID=1000 export JAILUSERVNC=false /root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC iocage fstab -r $JAIL /mnt/ship/certs /mnt/certs nullfs ro 0 0 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 exec $JAIL "pkg install -y hercules tmux" 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"' iocage restart $JAIL iocage console $JAIL tmux att #start various hercules sessions
Notes:
ifconfig tun95 create ifconfig tun95 inet 172.16.0.95 172.16.0.100 chmod 666 /dev/tun95
iocage exec $JAIL "service ipfw restart"
Infrastructure: Configure pfsense DNS entry for ibm.ahlawat.com 192.168.0.95
.