Hercules IBM S/390 emulator running in a FreeBSD jail
  • zOS 1.10
  • MVS 3.8j
  • Michigan Terminal System (MTS)

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


.


Notes


There are a few good ways of architecting an IT setup for a Home, School or a Small Business. Showcased here is a capital and operational cost effective approach by using minimal/required networking hardware and a server with multiple virtualized applications. This solution template can be easily scaled out and adapted for enterprise organizations.
drop by the diyIT Matrix public room at #diyit:matrix.ahlawat.com
if you have any IT questions/feedback or to request pro bono consulting for a nonprofit

message me privately at @sharad:matrix.ahlawat.com
or email me at - sharad@ahlawat.com - pgpkey: 68DD6B89
Networking and Security (Cyber & Infrastructure) professional.
An engineer and an avid programmer.
Passionate about driving technology innovations to tackle challenging problems in security and networking.

https://sharad.ahlawat.com
strive to learn and pass on knowledge to the next generation and prepare them to prepare the next
one day humanity will understand the meaning of life and hopefully it will be more than ASCII 42 = "*" regex for whatever you want it to be,
and destiny is more than just a roll of a pair of dice with 42 dots (Lets nail down Quantum Entanglement)

Live Long (Intelligently) and Prosper
© 2020 Sharad Ahlawat

No personal identifying data is collected or any form of analytics/metrics reported to a third-party by this website.