From 373eeaa3aaec3af8eaae67ad1ac3f5fdf323ac37 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 2 Apr 2022 13:56:08 +1100 Subject: [PATCH] added a larger example --- README.adoc | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 380911f..22edb21 100644 --- a/README.adoc +++ b/README.adoc @@ -23,8 +23,8 @@ framework. they were alone. * *overlay-boot* includes support for overlay root filesystem with - persistent idividual overlays for the subhosts. This is scripted to - be open for any storage solutions, including the sharing of file + persistent individual overlays for the subhosts. This is scripted + to be open for any storage solutions, including the sharing of file system subtrees, disk and partition image files and logical volume set ups. @@ -75,3 +75,97 @@ The subhost environment may be "entered" with ---- ==== +Another usage example (MTA) +--------------------------- + +This is an example setup at +/opt/mta+ of a larger overlay subhost +for an MTA as primary service and with some additional useful +companion services. + +.Initial setup for /opt/mta +==== +---- +$ sudo mkdir -p /opt/mta/{live,root,work} + +# sudo tee /opt/mta/mta.conf > /etc/network/interfaces +# echo "$MTANET.2 mta" >> /etc/hosts +# echo "mta" > /opt/mta/root/etc/hostname + +# iptables -t nat -I PREROUTING -p tcp --dport 25 -j DNAT --to-destination $MTANET.2 +# iptables -t nat -I POSTROUTING -s $MTANET.2 -j MASQUERADE + +# cat > /etc/network/interfaces.d/mta.conf /opt/mta/root/etc/network/interfaces