User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 456,589 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,593 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 4379 | Replies: 6
Reply
Join Date: Aug 2003
Posts: 8
Reputation: argh2005 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
argh2005 argh2005 is offline Offline
Newbie Poster

Help Iptables

  #1  
Aug 27th, 2003
Wow this is a bit weird. Well I'm not an expert in Linux. But I know that iptables responsible for the system firewall. So i went in to /etc/sysconfig and vim the iptables and i see that port 25 and 110 is accept. How come when I telnet the port 25 and 110, it is show that the connection is refuse. I did open up my router firewall also for the port 25 and 110. So I'm stuck at this point. Don't know why these two ports is not open. I need these two ports for my sendmail to be able to send and receive email to the outside source. Please lighten up me with your solution, anyone?

I'm really appreciated if you can, and I also really appreciated if you try. Thanks guy...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Iptables

  #2  
Aug 27th, 2003
I'm a bit confused when you say you are trying to telnet into ports 25 and 110. Do you mean you're trying to ping your server? You'll need to do a portscan to see if those ports are open or not.

Telnet is the daemon that lets you run a shell remotely, and is usually done via port 23.
Reply With Quote  
Join Date: Aug 2003
Posts: 8
Reputation: argh2005 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
argh2005 argh2005 is offline Offline
Newbie Poster

Help Iptables

  #3  
Aug 27th, 2003
I did try to do nmap -sS for localhost and etc.. 25 and 110 is in the state closed. But my router configuration is open for it.. and iptables' port 25 and 110 is accepting. When i do telnet.. (usually you telnet a port is to see if the port is accept the connection or not.. so you'll know it's open or closed).. for 25 and 110, it say connection refuse, but i telnet port 22.. and port 22 is open for a connection.

So any suggestion?

Thanks for replying to me so fast ...
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Iptables

  #4  
Aug 27th, 2003
This isn't exactly my field of expertise. However, does it make sense that perhaps despite the ports being open through your firewall, sendmail is not configured properly, and therefore there is no daemon listening to those open ports, to respond to you when you try to telnet to them?
Reply With Quote  
Join Date: Aug 2003
Posts: 8
Reputation: argh2005 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
argh2005 argh2005 is offline Offline
Newbie Poster

Iptables

  #5  
Aug 27th, 2003
Yes, it sort of make sense. But I did run a check on my sendmail status, and it's up and running. About sendmail configuration is default from beginning, I didn't change anything, but only two line of codes. What I did was comment out the following line:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

That is, place a dnl in front so it looks like the following:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail

Then I restart sendmail. (/etc/init.d/sendmail/restart)

I think this is the right way to configure the sendmail so far. If you know what I did wrong, please let me know thanks.

So far, I'm clueless because my sendmail is not working the way it suppose to work, and the port 25 and 110 look like it was closed when I do the nmap, but I did check the iptables and see it was open, and my router also open those 2 ports.

.. Thanks for trying to help.
Reply With Quote  
Join Date: Aug 2006
Location: South Africa, Durban
Posts: 112
Reputation: PoovenM is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 8
PoovenM PoovenM is offline Offline
Junior Poster

Re: Iptables

  #6  
Nov 19th, 2007
There are other setting to consider. I've not used sendmail, but with postfix, there are a few things in the config file (/etc/postfix/main.cf in Fedora) that need to be unblocked:

mydomain = cs.ukzn.ac.za
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain

This is of course a late reply (years late!) but I was searching for stuff on iptables and maybe this postfix info could help someone one day

Often if one thing doesn't work, something else is worth a shot
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,535
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 17
Solved Threads: 283
Moderator
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: Iptables

  #7  
Nov 19th, 2007
Originally Posted by PoovenM View Post
There are other setting to consider. I've not used sendmail, but with postfix, there are a few things in the config file (/etc/postfix/main.cf in Fedora) that need to be unblocked:

mydomain = cs.ukzn.ac.za
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain

This is of course a late reply (years late!) but I was searching for stuff on iptables and maybe this postfix info could help someone one day

Often if one thing doesn't work, something else is worth a shot

You do realize that you're reviving a thread that is FOUR YEARS old, yes?
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb *nix Software Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the *nix Software Forum

All times are GMT -4. The time now is 6:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC