diff --git a/src/wg-quick.bash b/src/wg-quick.bash index e5ae48f..c70c078 100755 --- a/src/wg-quick.bash +++ b/src/wg-quick.bash @@ -163,7 +163,7 @@ add_default() { local key value while read -r key _ value; do [[ $value -eq 1 ]] && sysctl -q "$key=2" - done < <(sysctl -a -r 'net\.ipv4.conf\..+\.rp_filter') + done < <(sysctl -a -r '^net\.ipv4.conf\.[^ .=]+\.rp_filter$') return 0 }