diff --git a/installers/iptables.service b/installers/iptables.service new file mode 100644 index 00000000..ed98c87f --- /dev/null +++ b/installers/iptables.service @@ -0,0 +1,14 @@ +[Unit] +Description=Packet Filtering Framework +DefaultDependencies=no +After=systemd-sysctl.service +Before=sysinit.target +[Service] +Type=oneshot +ExecStart=/sbin/iptables-restore /etc/iptables/iptables.rules +ExecReload=/sbin/iptables-restore /etc/iptables/iptables.rules +ExecStop=/etc/iptables/flush-iptables.sh +RemainAfterExit=yes +[Install] +WantedBy=multi-user.target + diff --git a/installers/raspap.iptables b/installers/raspap.iptables new file mode 100644 index 00000000..0e50821c --- /dev/null +++ b/installers/raspap.iptables @@ -0,0 +1,5 @@ +iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP +iptables -t nat -A POSTROUTING -s 192.168.50.0\/24 ! -d 192.168.50.0\/24 -j MASQUERADE #RASPAP + +COMMIT +