Bug 129731 - [PATCH] "service iptables status" can seem to hang due to DNS timeouts
Summary: [PATCH] "service iptables status" can seem to hang due to DNS timeouts
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: iptables
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-12 09:21 UTC by Nils Philippsen
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-17 10:39:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch to fix the problem. (640 bytes, patch)
2004-08-12 09:24 UTC, Nils Philippsen
no flags Details | Diff

Description Nils Philippsen 2004-08-12 09:21:18 UTC
Description of problem:

"service iptables status" can seem to hang, probably when making
reverse lookups of IP addresses which run into unreachable servers.
Likewise for "service ip6tables status".

Version-Release number of selected component (if applicable):

iptables-1.2.8-12.3

How reproducible:

Not so easy.

Steps to Reproduce:
1. Configure iptables rule for a specific IP address
2. Make the nameserver for that IP not respond (that's the tricky part ;-)
3. run "service iptables status"
  
Actual results:

Seems to hang until DNS times out.

Expected results:

Returns numerical lists immediately.

Additional info:

This originally came up in #128549 "redhat-config-services locks up
for 5 minutes if iptables is selected". While I plan to keep the GUI
responsive in such cases, it would be better if it could display the
status of iptables/ip6tables immediately instead of presenting the
user an hourglass for some minutes ;-).

It's the same on FC2 with iptables-1.2.9-2.3.1.

Comment 1 Nils Philippsen 2004-08-12 09:24:26 UTC
Created attachment 102643 [details]
Proposed patch to fix the problem.

Runs "iptables -n ... --list" and "ip6tables -n ... --list" when checking the
status.

Comment 2 Nils Philippsen 2004-08-13 10:40:03 UTC
NB: I noticed this problem working on bug #128549.

Comment 3 Thomas Woerner 2004-09-03 09:33:48 UTC
There is already a check for this in /etc/sysconfig/iptables-config: 
IPTABLES_STATUS_NUMERIC

But it is off by default.

Comment 4 Thomas Woerner 2004-09-17 10:39:10 UTC
The default behaviour will be changed for RHEL4.



Note You need to log in before you can comment on or make changes to this bug.