Mercurial > code > home > repos > infra
view files/net/house_net.service @ 311:c44677a25baf
opendkim fix restart
author | drewp@bigasterisk.com |
---|---|
date | Mon, 16 Sep 2024 20:10:58 -0700 |
parents | 65e28d2e0cd8 |
children |
line wrap: on
line source
# written by pyinfra [Unit] After=network-online.target nss-lookup.target Wants=network-online.target nss-lookup.target [Service] Type=oneshot ExecStart=sh -c "sysctl net.ipv4.ip_forward=1 && /usr/sbin/iptables -A POSTROUTING --table nat --out-interface eth0 --jump MASQUERADE" RemainAfterExit=yes [Install] WantedBy=multi-user.target