Skip to content

Commit ee72351

Browse files
committed
updated install.sh with empty iptables.local file
1 parent c0bc642 commit ee72351

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bin/install.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,23 @@ esac
14161416

14171417
if [ "$use_iptables" = "True" ] ; then
14181418
dlog "using iptables not nftables"
1419+
cat >/etc/network/iptables.local <<EOF
1420+
#
1421+
# use this for local iptables rules not to be overwriten
1422+
# by the honeypot configuration. Use "-I" to insert rules
1423+
# for example, to allow all traffic from a wireguard VPN
1424+
# interface, use:
1425+
#
1426+
# *filter
1427+
# -I INPUT 1 -i wg0 -j ACCEPT
1428+
# COMMIT
1429+
#
1430+
# first line must be "*filter"
1431+
# last line must be "COMMIT"
1432+
# to test, run
1433+
# iptables -n iptables.local
1434+
#
1435+
EOF
14191436
cat >/etc/network/iptables <<EOF
14201437
14211438
#

0 commit comments

Comments
 (0)