Bug 62932 - firewall-config can't DENY SYN packets
Summary: firewall-config can't DENY SYN packets
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: firewall-config
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-08 00:08 UTC by Peter Fales
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-04-08 00:09:00 UTC
Embargoed:


Attachments (Terms of Use)

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.


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