Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-04-2003, 07:43 AM
|
#1
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Rep:
|
Can't Connect to port 25
SOMEONE HELP MEEEEEEEEEEE!!
I have the sendmail daemon running at home, but noone from the outside can connect there.
I have read a lot about it, I have changed some options from sendmail.cf such as where to listen (0.0.0.0 instead of 127.0.0.1), tried to build my own cf, but nothing worked, Still cant connect to my server from the outside.
Does anybody know sth about this matter?!?!?
PLEASE HELP!
Thanks a lot!
|
|
|
12-04-2003, 08:13 AM
|
#2
|
Member
Registered: Aug 2003
Location: india
Distribution: ubuntu
Posts: 36
Rep:
|
reply to ur message
could u please tell me what linux os ur working.

|
|
|
12-04-2003, 08:22 AM
|
#3
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Re: could u please tell me what linux os ur working.
Of course.
Is a Red Hat 9 Linux
Can you help me?
THANKS!
|
|
|
12-04-2003, 09:17 AM
|
#4
|
Member
Registered: Nov 2003
Location: UK
Distribution: SUSE 9.2
Posts: 77
Rep:
|
Are you running a firewall? Is it configured to allow port 25 through?
|
|
|
12-04-2003, 09:35 AM
|
#5
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Firewall
Yes, its behind a router firewall, cause server is on a maching behind NAT.
but does not even work on the server. seems to reject/drop connections to port 25, but routing to port 110 works fine, I dont know why.
I have tried, as you can read, several things, but nothing worked.
Hope sbd can help me =(
THANKS!
|
|
|
12-04-2003, 10:53 AM
|
#6
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
Perhaps your ISP is blocking incoming connectios to port 25?
Run tcpdump on your internet interface, do you see an incoming SYN packet to port 25 when someone trys to connect?
what rule are you using to forward the traffic to the machine behind NAT?
|
|
|
12-04-2003, 11:14 AM
|
#7
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Firewall Roule
Is not an ISP problem, I called them and they are not blocking port 25.
I think that is an OS problem and i dont know why.
Using the tcpdump is a real mess, cause es a server. I will try to log connections.
My firewall roule to forward traffic is (refering to port 25)
iptables -A FORWARD -p tcp --dport 25 -o $INTERNAL_INTERFACE -d 192.168.1.2 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 25 -i ppp0 -j DNAT --to 192.168.1.2
please, helppppppppp!!!!
|
|
|
12-04-2003, 12:08 PM
|
#8
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
tcpdump -n dst port 25
|
|
|
12-04-2003, 12:31 PM
|
#9
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
NOT WORKINGGGG!
thanks to all, but this #$%@#$ still not working.
I have tried that "tcpdump...." with its parameters, but I receive no incoming connection to the port, seems to be blocked somewhere.
Any ideas!?
pleaseee IDEASSSSS! =$
|
|
|
12-04-2003, 01:43 PM
|
#10
|
Member
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360
Rep:
|
Can you telnet to port 25?
|
|
|
12-04-2003, 05:30 PM
|
#11
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Telnet
I DO can telnet to port 25, but from my own computer, or from a LAN one, but not from the outside =(((
HELPPPPP!
|
|
|
12-04-2003, 07:19 PM
|
#12
|
Member
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360
Rep:
|
Sounds like a firewall issue. Would you care to post it so I can review what you have?
Your forwarding rules above look to be correct but there may be something before them that drops the packets.
|
|
|
12-05-2003, 12:26 AM
|
#13
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 388
Rep:
|
Hm, tcpdump might be listening on the wrong interface, you
may have to add -i ppp0
I'm not sure about your first forwarding rule. I'm not an ip tables guru but
I don't think you need the first rule, just the DNAT rule should do it.
>iptables -A FORWARD -p tcp --dport 25 -o $INTERNAL_INTERFACE -d 192.168.1.2 -j ACCEPT
>iptables -t nat -A PREROUTING -p tcp --dport 25 -i ppp0 -j DNAT --to 192.168.1.2
When testing remember that if the forwarding is in place then having somthing listening on port 25 on the server won't work, you have to remove the forwarding rule first.
|
|
|
12-05-2003, 05:05 AM
|
#14
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Firewall
Thanks all, but I already know that if firewall is running, redirecting port 25, it wont work on the server. To test it, the first thing i did was disable firewall and test it on the server. But didnt work. Yesterday I Changed my linux distrb. to Mandrake 9.2. Any more ideas?
I repeat, THANKS TO ALL!
|
|
|
12-05-2003, 05:08 AM
|
#15
|
LQ Newbie
Registered: Dec 2003
Posts: 26
Original Poster
Rep:
|
Didnt work either
I've tried to connect to my new Mandrake distr. but it didnt worked either. Here there is no firewall, no rules, no ipv4, just Mandrake just installed.
The problem seems to be port 25. I have read that there it was because of an issue that they block port 25 in sendmail.cf file. But evething I've tried, didnt worked.
Any more ideas?
THANKSSSSSS
|
|
|
All times are GMT -5. The time now is 11:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|