Just as a quick addendum the firewall file lives in
/etc/sysconfig/ip(chains/tables), this is chains for 7.2 IIRC - at least
on 7.2 Alpha.

The most basic format, if you're in a hurry, is:

-A/-I* CHAINNAME** -P PROTOCOL -s SOURCEADDRESS -d DESTINATION PORT -j
what-to-do*** -l**** (if you want) 

* ADD or INSERT or DELETE
** usually INPUT or  OUTPUT 
*** DENY or ACCEPT or MASQ or REDIRECT or RETURN - 1st 2 probably
**** log to /var/log/messages if packet matching the rule arrives

so to add a rule to deny ssh connections from anywhere to 192.168.0.1

-A INPUT -P tcp -s 0/0 -d 192.168.0.1/255.255.255.255 22 -j DENY -l


Kind of short - better to read man ipchains (or, really, to use iptables
but......)

Tim

On Mon, 2002-09-09 at 06:13, Sriram Narasimhan wrote: 
> Hello,
> 
> I am using Red Hat 7.2 running 2.4.7-10
> 
> I seem to be having a problem changing the firewall configuration. When 
> I installed Red Hat I didn't bother to set the firewall and it defaulted 
> to the "High" Security level.
-- 
-----------------------------
Tim Kay
Systems programmer
Queen Mary University of London

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to