view net/files/house_net.service @ 332:d4893670f888 default tip

WIP: use watchdog reboot timer on pi
author drewp@bigasterisk.com
date Thu, 27 Feb 2025 11:09:29 -0800
parents 8558ea135812
children
line wrap: on
line source

# written by pyinfra

[Unit]
After=network-online.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