mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Initial commit
This commit is contained in:
parent
c649246614
commit
8c67fd0c3a
2 changed files with 19 additions and 0 deletions
14
installers/iptables.service
Normal file
14
installers/iptables.service
Normal file
|
@ -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
|
||||
|
5
installers/raspap.iptables
Normal file
5
installers/raspap.iptables
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue