Skip to content

Commit

Permalink
fixing iptables.local overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
jullrich committed Aug 23, 2024
1 parent e903277 commit 6f82be1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,8 @@ esac

if [ "$use_iptables" = "True" ] ; then
dlog "using iptables not nftables"
# do not overwrite existing local file
if [ ! -f /etc/network/iptables.local ]; then
cat >/etc/network/iptables.local <<EOF
#
# use this for local iptables rules not to be overwriten
Expand All @@ -1433,6 +1435,7 @@ if [ "$use_iptables" = "True" ] ; then
# iptables -n iptables.local
#
EOF
fi
cat >/etc/network/iptables <<EOF
#
Expand Down

0 comments on commit 6f82be1

Please sign in to comment.