Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29087 - "/etc/init.d/ip6tables stop" fails because trying to flush nat table
Summary: "/etc/init.d/ip6tables stop" fails because trying to flush nat table
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 03:24 UTC by SpanKY
Modified: 2003-09-19 06:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-09-19 03:24:29 UTC
In the Sys V init.d startup script for ip6tables, when stopping it tries to
flush the IPv6 nat table, which does not always exist, producing an error like this:

root@super/etc/init.d> ./ip6tables stop
 * Stopping firewall...
modprobe: Can't locate module ip6_tables
ip6tables v1.2.8: can't initialize ip6tables table `nat': Table does not exist
(do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.                     [ ok ]

It gets those table names from /proc/net/ip_tables_names, but it should actually
be /proc/net/ip6_tables_names, IMHO. This is in net-firewall/iptables-1.2.8-r1.

It does work when I add the '6':
Old:
                for a in `cat /proc/net/ip_tables_names`; do

New:
                for a in `cat /proc/net/ip6_tables_names`; do
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2003-09-19 06:54:47 UTC
Fixed, thanks for finding this! 
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2003-09-19 06:55:10 UTC
Fixed, thanks for finding this!