Bug 62932

Summary: firewall-config can't DENY SYN packets
Product: [Retired] Red Hat Linux Reporter: Peter Fales <redhat.com>
Component: firewall-configAssignee: Harald Hoyer <harald>
Status: CLOSED WONTFIX QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-08 00:09:00 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:

Description Peter Fales 2002-04-08 00:08:56 UTC
I'm try to create a set of firewall rules that will allow any outgoing 
connections, but accept incoming connections only on a limited set of 
ports.  I currently do this with a set of commands like:

ipchains -A input -i eth0 -s 0/0 -d 0/0 http -p tcp -y -j ACCEPT
ipchains -A input -i eth0 -s 0/0 -d 0/0 ssh  -p tcp -y -j ACCEPT
ipchains -A input -i eth0 -l -s 0/0 -d 0/0   -p tcp -y -j DENY

This accepts SYN packets on port 80 or port 22, but denies connections
on any other ports.   I was trying to start doing this the "right"
way using firewall-config, but I wasn't able to do it - firewall-config 
greys out the "start of connection" button when the ACTION is ACCEPT.

I can't think of any obvious way to provide this functionality some
other way, but even if there is a different/better way to do it  I
think firewall-config should allow you to create any rule that is 
legal for ipchains.  The first two rules are accepted by the ipchains
command and seem to do what I want, but I can't enter that rule
using firewall-config.



How Reproducible:


Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Harald Hoyer 2002-04-08 08:11:48 UTC
hmm, with this set, you can even remove the "-y". But you are right. You may  
solve this with another rule set or write /etc/sysconfig/ipchains with vi.  
firewall-config was not intended to include _all_ options of ipchains.  
As time permits, firewall-config will be rewritten completly (iptables) in the 
next half year.