LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2003, 08:04 PM   #1
Tigger
Member
 
Registered: May 2003
Posts: 168

Rep: Reputation: 30
How do i enable ports?


Hi

i am using red hat 8 to host mail and web page.

How do i enable port 110 and 25?

When i try to telnet servername port i get connection refused for both of these ports.

I have enabled ipop3 in the ipop3 file and restarted xinetd.

In iptables i have allowed for port 25 (smtp) and have opened up my router for ports 25 and 80.

thanks
 
Old 06-01-2003, 02:52 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well you did not mention you have allowed port 110/143 in your iptables ruleset also. Did you do that?

What does netstat -l say ?
 
Old 06-01-2003, 05:20 AM   #3
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
how do i enable it on the internal lan?

Do i type iptables -A INPUT -p tcp --dport 110 -j ACCEPT

Is this secure?

thanks
 
Old 06-01-2003, 05:29 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
which interface do you you use for your internal lan ? If you use eth0 for your lan:

iptables -A INPUT -i eth0 -p tcp --dport 110 -j ACCEPT
 
Old 06-01-2003, 05:30 AM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
of course you can also limit the source:

iptables -A INPUT -i eth0 -p tcp --dport 110 -s 192.168.0.0/16 -j ACCEPT
 
Old 06-01-2003, 05:38 AM   #6
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
thanks markus, i will try this tomorrow and let you know

it sure sounds right to me, i have not enabled the port in iptables

is this why when i telnet to servername port 110 i get connection refused?

Yes, i use eth0.

thanks again
 
Old 06-01-2003, 09:02 AM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well if your default rule is DROP and you haven't ACCEPTED the port then of course you get refuse ... if you are on the pop3 server do a netstat -l to check which services are listening to which ports ...
 
Old 06-01-2003, 08:39 PM   #8
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
thanks Markus, tried netstat -l and it comes up that pop3 is listening but does not specify a port. Could only see 0. This is same for http and smtp. However, i can send and receive mail across the internet. How can i fix this?

Now when i telnet servername 110 it is working!!! However still cannot use outlook 2002 to log onto the incoming pop3 server which is my linux box!!

thanks
 
Old 06-02-2003, 02:24 AM   #9
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
My iptables has the following lines in it:

iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 110 -j ACCEPT

My mail log says "Did not issue mail/expn/vrfy/etrn during connection to MTA" What does this mean?

What should be in my hosts file? I have got the following:

127.0.0.1 myservername.com mydomain.com

Also forgot to mention that my router is not directly attached to the linux box. it is attached to a switch on the lan

thanks again
 
  


Reply



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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
enable ssh davidhk Debian 7 10-09-2007 05:49 PM
how to enable apt-get? jnev DamnSmallLinux 7 06-27-2005 08:09 PM
Can't enable 3D yzrider210 Linux - Hardware 24 12-29-2003 11:09 PM
enable DMA? Alinuxnoob Linux - Newbie 1 02-28-2002 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:48 PM.

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