LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RedHat 7.0 and IPChains... (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-7-0-and-ipchains-3982/)

BioVirus 07-05-2001 11:06 AM

RedHat 7.0 and IPChains...
 
I have installed RedHat 7.0 and IPChains however the ports that are supposed to be open and or closed never change when I adjust the ipchains set. The only thing affected by ipchains seems to be the masq settings. Example: port 25 I have placed the rule in ipchains to allow port 25 access on eth1 (Public Side). However a portscan shows that the port remains closed. Does RedHat 7.0 use a different method of setting up the firewall other than ipchains that would be causing this problem?


Thanks in advance!

BioVirus

jharris 07-05-2001 12:06 PM

If you enter two rules then enter a third that contradicts the first rule it will never be executed... You need to remove the previous rule, or modify it.

I tend to have all my rules in a script and end up running ipchains -F to flush all my chains, then I run my script (thats been updated) to input the new rules.

HTH

Jamie...

BioVirus 07-05-2001 02:09 PM

I have flushed all rules and only added port 25 and my masq set, it still will not change any ports that are there. Still says that ports 21, 110 are open even tho I never made a rule to allow them open and placed a deny rule.

Clueless as to why this is happening, does RedHat store chains somewhere else other than the default /etc/sysconfig/ipchains ??


Thanks

Bio

jharris 07-05-2001 04:54 PM

Post the output of
Code:

ipchains -L
so we can see whats going on, and a copy of your ipchains script might be good too!

Cheers

Jamie...

BioVirus 07-06-2001 08:43 AM

Well I finally got it....stupid really...(well they always are when you figure it out!)

My input chain was set to DENY. I needed to set it to accept then setup my REJECT Statements.

Sheesh sometimes stupidity amazes even the stupid people!


Thanks for all your help...


BioVirus


All times are GMT -5. The time now is 05:06 AM.