Bug 104484 - ip6tables-save does not save udp ports correctly
Summary: ip6tables-save does not save udp ports correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: iptables
Version: 9
Hardware: athlon
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-16 08:09 UTC by Andre
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-09-25 09:51:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Andre 2003-09-16 08:09:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20030131

Description of problem:
ip6tables-save looses port information when saving udp rules.

Version-Release number of selected component (if applicable):
iptables-ipv6-1.2.7a-2

How reproducible:
Always

Steps to Reproduce:
1. service ip6tables stop # (flush all rules)
2. ip6tables -A INPUT -p udp -m udp --sport 32768: --dport 32768: -j ACCEPT
3. ip6tables-save -c |grep -- '-A INPUT'
    

Actual Results:  [0:0] -A INPUT -s ::/0 -d ::/0 -p udp -m udp -j ACCEPT

# Notice that all port information is lost!

Expected Results:  [0:0] -A INPUT -s ::/0 -d ::/0 -p udp -m udp --sport 32768:
--dport 32768: -j ACCEPT


Additional info:

ip6tables -v -L INPUT # gives:

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     udp      any    any     anywhere             anywhere   
       udp spts:32768:65535 dpts:32768:65535

as expected.

Comment 2 Andre 2003-09-16 18:46:46 UTC
I still get the same behavior with the new packages:

# rpm -qf `which ip6tables-save`
iptables-ipv6-1.2.8-8.90.1
# ip6tables -v -L INPUT |grep udp
 0 0 ACCEPT udp any any anywhere anywhere udp spts:32768:65535 dpts:32768:65535
# ip6tables-save -c |grep -- '-A INPUT'
[0:0] -A INPUT -s ::/0 -d ::/0 -p udp -m udp -j ACCEPT

Comment 4 Andre 2003-09-17 17:18:07 UTC
Yes, 1.2.8-8.90.5 has fixed the problem for me -- the udp ports are being saved
correctly.  Thanks!


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