LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2001, 11:06 AM   #1
BioVirus
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Rep: Reputation: 0
Unhappy 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
 
Old 07-05-2001, 12:06 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 07-05-2001, 02:09 PM   #3
BioVirus
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 07-05-2001, 04:54 PM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 07-06-2001, 08:43 AM   #5
BioVirus
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redhat 8.0 and ipchains? durden2.0 Linux - Networking 3 06-29-2003 04:23 PM
Ipchains Deepakm Linux - Software 6 06-20-2003 12:14 PM
IPChains + port forwarding + redhat 7.2 purduephotog Linux - Networking 2 04-22-2002 04:38 PM
Ipchains mikeyt_3333 Linux - Security 3 10-02-2001 06:07 PM
[ipchains] MrGreg Linux - General 4 07-14-2001 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration