mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix: /etc/iptables/ dir absent on Raspbian
This commit is contained in:
parent
125c203884
commit
63dc8442ba
@ -281,8 +281,8 @@ function default_configuration() {
|
||||
fi
|
||||
|
||||
echo "Enabling persistent IP tables rules"
|
||||
if [ ! -f "/etc/iptables/iptables.rules" ]; then
|
||||
sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables || install_error "Unable to move iptables.rules to /etc/iptables"
|
||||
if [ ! -f "/etc/iptables.raspap.rules" ]; then
|
||||
sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables.raspap.rules || install_error "Unable to move iptables.rules"
|
||||
fi
|
||||
|
||||
if [ ! -f "/etc/systemd/system/iptables.service" ]; then
|
||||
|
@ -6,8 +6,8 @@ Before=sysinit.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/sbin/iptables-restore /etc/iptables/iptables.rules
|
||||
ExecReload=/sbin/iptables-restore /etc/iptables/iptables.rules
|
||||
ExecStart=/sbin/iptables-restore /etc/iptables.raspap.rules
|
||||
ExecReload=/sbin/iptables-restore /etc/iptables.raspap.rules
|
||||
ExecStop=/etc/iptables/flush-iptables.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user