aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-12-05 11:47:57 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-05 11:48:25 +0100
commit9048bf71eef53fdec2d1fa399b19f4e9414e3a10 (patch)
tree371e0856f35ad2c1419e83ddad2822d7fd9d254f /src/tools
parentipc: make sure userspace communication frees wgdevice (diff)
downloadwireguard-monolithic-historical-9048bf71eef53fdec2d1fa399b19f4e9414e3a10.tar.xz
wireguard-monolithic-historical-9048bf71eef53fdec2d1fa399b19f4e9414e3a10.zip
wg-quick: linux: iptables-* -w is not widely supported
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/wg-quick/linux.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
index 4fecabb..fc90e55 100755
--- a/src/tools/wg-quick/linux.bash
+++ b/src/tools/wg-quick/linux.bash
@@ -190,7 +190,7 @@ remove_iptables() {
[[ $line == "-A"* ]] && found=1
printf -v restore '%s\n%s' "$restore" "${line/#-A/-D}"
done < <($iptables-save)
- [[ $found -ne 1 ]] || echo "$restore" | cmd $iptables-restore -nw
+ [[ $found -ne 1 ]] || echo "$restore" | cmd $iptables-restore -n
done
}
@@ -217,7 +217,7 @@ add_default() {
done
printf -v restore '%s\nCOMMIT\n*mangle\n-I POSTROUTING -m mark --mark %d -p udp -j CONNMARK --save-mark %s\n-I PREROUTING -p udp -j CONNMARK --restore-mark %s\nCOMMIT\n' "$restore" $table "$marker" "$marker"
[[ $proto == -4 ]] && cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1
- echo "$restore" | cmd $iptables-restore -nw
+ echo "$restore" | cmd $iptables-restore -n
HAVE_SET_IPTABLES=1
return 0
}