Red Hat Bugzilla – Bug 357381
apmscript takes down network (stopping packet forwarding) and doesn't bring it back up
Last modified: 2007-11-30 17:12:20 EST
Description of problem:
case "$PROG" in
if [ "$NET_RESTART" = "yes" ] ; then
/sbin/service network stop
There is no counter-case in resume. suspend ensures that the originally active
devices are brought up via /var/run/apm-resume-post, but /etc/init.d/network
stop also stops packet forwarding:
if [ -f /proc/sys/net/ipv4/ip_forward ]; then
if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then
action $"Disabling IPv4 packet forwarding: " sysctl -w
and since network is never started again, packet forwarding remains off after
If someone presses the power/suspend button on a router/firewall running apmd,
it will suspend and shut down packet forwarding, but on resume, packet
forwarding remains off and routing functions disabled.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. check that router/firewall is forwarding packets and running apm
2. press power/suspend button
3. wake up the box
4. check that it no longer forwards packets and /proc/sys/net/ipv4/ip_forward is 0
/proc/sys/net/ipv4/ip_forward is 0 after resume.
/proc/sys/net/ipv4/ip_forward should be reset to default value from
/etc/sysctl.conf by /etc/init.d/network start, which is never run.
Unfortunately, I do not have a hardware to test this now, co I create srpm with
a fix. Please, could you test it?. I'll create an attachment with srpm.
Created attachment 243091 [details]