Package: iptables-persistent Version: 1.0.9 debian Buster/testing from 19. Nov. 2018 running 'netfilter-persistent save' gives funny errors including $PWD modprobe -d requires an argument or could be omitted completely.
# netfilter-persistent save run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables save run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables save modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/root/-q/lib/modules/4.18.0-2-amd64/modules.dep.bin' modprobe: FATAL: Module ip6table_filter not found in directory /root/-q/lib/modules/4.18.0-2-amd64 # possible fix: --- /usr/share/netfilter-persistent/plugins.d/25-ip6tables.orig 2018-11-19 23:07:31.895973731 +0100 +++ /usr/share/netfilter-persistent/plugins.d/25-ip6tables 2018-11-19 23:07:40.991973533 +0100 @@ -34,7 +34,7 @@ { #save IPv6 rules #need at least ip6table_filter loaded: - /sbin/modprobe -d -q ip6table_filter || true + /sbin/modprobe -d / -q ip6table_filter || true if [ ! -f /proc/net/ip6_tables_names ]; then log_action_cont_msg "Warning: skipping IPv6 (Kernel support is missing)" elif [ -x /sbin/ip6tables-save ]; then Thanks for taking care, Urs