Bug 174503

Summary: ip6tables doesn't support REJECT target
Product: [Fedora] Fedora Reporter: Charles R. Anderson <cra>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-21 13:53:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 173699    
Bug Blocks: 150221, 195271    

Description Charles R. Anderson 2005-11-29 16:02:44 UTC
Description of problem:

ip6tables -j REJECT support is not compiled due to incorrect glibc-kernheaders.

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

How reproducible:
always

Steps to Reproduce:
1. ip6tables -A INPUT -j REJECT --reject-with adm-prohibited
  
Actual results:
ip6tables v1.3.4: Unknown arg `--reject-with'
Try `ip6tables -h' or 'ip6tables --help' for more information.

Expected results:
ip6tables rule should be added to INPUT chain with REJECT target, causing ICMP
message type adm-prohibited to be sent back.

Additional info:
/lib/iptables/libip6t_REJECT.so is missing from the package.  This is caused by
a test in iptables-1.3.4/extensions/.REJECT-test6:

#!/bin/sh
FILE=$KERNEL_DIR/include/linux/netfilter_ipv6/ip6t_REJECT.h
# True if REJECT is applied.
[ -f $FILE ] && grep IP6T_ICMP6_NO_ROUTE 2>&1 >/dev/null $FILE && echo REJECT

$KERNEL_DIR is defined as /usr.  /usr/include/linux/netfilter_ipv6/ip6t_REJECT.h
comes from glibc-kernheaders with incorrect enum definitions.  The kernel-devel
include files have the correct enum definitions.  See bug #173699 against
glibc-kernheaders.  Fixing that bug and then rebuilding iptables fixes this bug.

Comment 1 Robert Scheck 2006-06-14 11:05:40 UTC
Reposting last comment from Charles as it got lost due hardware failure:
glibc-kernheaders-3.0-41 is now fixed.  Can you please rebuild iptables?  
Thanks.

Comment 2 Charles R. Anderson 2006-07-21 13:53:14 UTC
Rawhide iptables-ipv6-1.3.5-1.2.1 has this fixed.  Thanks.