From 7937e94ed36d2bdb909cc0744fbf229564a55592 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 19 Nov 2008 19:01:26 +0100 Subject: iptables: refer to dmesg when we hit error This does not make any better, but at least refer to dmesg which is the common source of information to diagnose kernel-side problems. This is helpful for newbie users. # iptables -I INPUT -j CLUSTERIP iptables: Invalid argument. Run `dmesg' for more information. Signed-off-by: Pablo Neira Ayuso --- iptables-standalone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables-standalone.c') diff --git a/iptables-standalone.c b/iptables-standalone.c index 001bb04b..dbfae5be 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -73,7 +73,8 @@ main(int argc, char *argv[]) } if (!ret) { - fprintf(stderr, "iptables: %s\n", + fprintf(stderr, "iptables: %s. " + "Run `dmesg' for more information.\n", iptc_strerror(errno)); if (errno == EAGAIN) { exit(RESOURCE_PROBLEM); -- cgit v1.2.3