From b0e6348e6fde4a16639d9626afe3dd20b886e25c Mon Sep 17 00:00:00 2001 From: schizza Date: Fri, 3 May 2024 18:19:21 +0200 Subject: [PATCH] Fix permissions in iptables script. --- iptables_redirect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables_redirect.sh b/iptables_redirect.sh index d6fca5a..d1bcac9 100755 --- a/iptables_redirect.sh +++ b/iptables_redirect.sh @@ -77,7 +77,7 @@ if [ $? -eq 0 ]; then else info "not found." echo -n "Inserting iptables rule to PREROUTING chain ... " - $(iptables -I ${RULE[@]}) + sudo iptables -I ${RULE[@]} 2>/dev/null fi EXIT_STATUS=$? if [ $EXIT_STATUS -ne 0 ]; then