From fbb5639c02218acfd84c4f25f134efecb564fee1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 19 Mar 2009 16:57:35 +0100 Subject: iptables-save: module loading corrections 1. Ignore the absence of /proc/net/ip_tables_names, which happens when x_tables.ko is not loaded. This is equivalent to having x_tables.ko, but no tabe modules, loaded. As such, success should be returned. 2. Load table when explicitly requested by the -t option. Users might expect "*foo" etc. to be output when `iptables-save -t foo` is executed. So do autoload x_tables.ko and the table in this case. *. Do this for both iptables-save and ip6tables-save, and adjust the manpages for the new -M (modprobe program location) option that is introduced. Based upon a patch by Soren Hansen. Signed-off-by: Jan Engelhardt --- ip6tables-save.8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ip6tables-save.8') diff --git a/ip6tables-save.8 b/ip6tables-save.8 index c8b3e96a..47eb44ad 100644 --- a/ip6tables-save.8 +++ b/ip6tables-save.8 @@ -21,7 +21,7 @@ .SH NAME ip6tables-save \- Save IPv6 Tables .SH SYNOPSIS -.BR "ip6tables-save " "[-c] [-t table]" +.BR "ip6tables-save " "[-M modprobe] [-c] [-t table]" .br .SH DESCRIPTION .PP @@ -29,6 +29,10 @@ ip6tables-save \- Save IPv6 Tables is used to dump the contents of an IPv6 Table in easily parseable format to STDOUT. Use I/O-redirection provided by your shell to write to a file. .TP +\fB\-M\fP \fImodprobe_program\fP +Specify the path to the modprobe program. By default, iptables-save will +inspect /proc/sys/kernel/modprobe to determine the executable's path. +.TP \fB\-c\fR, \fB\-\-counters\fR include the current values of all packet and byte counters in the output .TP -- cgit v1.2.3