diff --git a/Shorewall-docs2/ErrorMessages.xml b/Shorewall-docs2/ErrorMessages.xml index 8e6b0c1e1..8472d9d36 100644 --- a/Shorewall-docs2/ErrorMessages.xml +++ b/Shorewall-docs2/ErrorMessages.xml @@ -800,7 +800,7 @@
Iptables Error Messages - By far the most asked about iptables error message is: + By far the most asked about iptables error messages are: @@ -813,27 +813,53 @@ copy of the iptables command that is failing. Most commonly, the problem is that one of the match types (keyword following "-m" in the command) isn't supported by your iptables/kernel. The output of - "shorewall check" shows you what your iptables/kernel + "shorewall show capabilities" shows you what your iptables/kernel support: - gateway:~# shorewall check -Loading /usr/share/shorewall/functions... -Processing /etc/shorewall/params ... -Processing /etc/shorewall/shorewall.conf... -Loading Modules... -Shorewall has detected the following iptables/netfilter capabilities: - NAT: Available + gateway:~# shorewall show capabilities +Shorewall has detected the following iptables/netfilter capabilities: + NAT: Available Packet Mangling: Available Multi-port Match: Available Extended Multi-port Match: Available Connection Tracking Match: Available - Packet Type Match: Not available + Packet Type Match: Available Policy Match: Available Physdev Match: Available - IP range Match: Available -Verifying Configuration... + IP range Match: Available + Recent Match: Available + Owner Match: Available + Ipset Match: Available + ROUTE Target: Not available + Extended MARK Target: Available + CONNMARK Target: Available + Connmark Match: Available + Raw Table: Available +gateway:~# + + -... + + iptables: invalid argument + + + Answer: 99.999% of the time, this error is caused by a + mismatch between your iptables and kernel. + + + + Your iptables must be compiled against a kernel source + tree that is Netfilter-compatible with the kernel that you are + running. + + + + If you rebuild iptables using the defaults and install it, + it will be installed in /usr/local/sbin/iptables. As shown + above, you have the IPTABLES variable in shorewall.conf set to + "/sbin/iptables". + +