Skip to contentSkip to conversation

Firewall Configuration...

DISCUSSION Sriram Narasimhan 3 participants 3 messages Sep 9, 2002 – Sep 10, 2002

lore
Share & tools
lore
#0 lore raw

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.

I am trying to change this to a customized firewall configuration, by running the 'setup' utility.

But even after changing the configuration, there seems to be no effect of the change. Every time I run 'setup' I keep seeing the setting at "High" Security level.

Am I doing something wrong, or should I do something else to change the setting ?

Many Thanks.

nsri

-
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

#1 lore raw

I'm only replying because I haven't seen any other replies, and the limited advice I can offer may be bit bit better than nothing. I don't use Red Hat, and so I do not know what "setup' program you are referring to.With that disclaimer ...

... to see what firewalling setup you currently have, you can list your current ruleset with the command "ipchains -nvl". (Since you are running 2.4.x, RH might be using iptables rather than ipchains; in that case, you want to use "iptables -nvL" or something close to that syntax.)

... your firewalling is probably set up by an init script, in whateve directory RH uses for init scripts (perhaps /etc/init.d/). That script probably calls a separate firewalling script, perhaps located in /etc/network ... but you will have to look around for that.

... to set up a customized firewall, you'll want to disable whatever automatic firewalling is installed, then create an init program that executes the ipchains (and perhaps ipmasqadm, if you are doing any port forwarding) -OR- iptables commands -- whichever RH is set up to use -- you want to run. Or you can simply have your bespoke firewall script run after the RH one, and let it start by clearing the chains/tables of the rules that the RH script has installed.

Without a greater understanding of what you want to do, the only other thing I can suggest is that you read the appropriate HowTos (Firewalling; Ipchains; I think there is a separate one for Ipmasqadm; by now there is probably one for Iptables). Good luck.

Quoted 6 lines · Sriram Narasimhan

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.

Quoted 7 lines

I am trying to change this to a customized firewall configuration, by running the 'setup' utility.

But even after changing the configuration, there seems to be no effect of the change. Every time I run 'setup' I keep seeing the setting at "High" Security level.

Am I doing something wrong, or should I do something else to change the setting ?

Many Thanks.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
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

#2 lore raw
In reply to Sriram Narasimhan

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

Quoted 7 lines · Sriram Narasimhan

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.

Signature · 10 lines
-----------------------------
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