From: Ralph Ronnquist Date: Sat, 2 Apr 2022 02:56:08 +0000 (+1100) Subject: added a larger example X-Git-Tag: v0.1.5~13 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=373eeaa3aaec3af8eaae67ad1ac3f5fdf323ac37;p=rrq%2Foverlay-boot.git added a larger example --- 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