LinuxQuestions.org
Visit Jeremy's Blog.
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 03-27-2013, 12:58 PM   #1
magnuspahlsson
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Rep: Reputation: Disabled
Slackware 14.0 - No route to host problem.


Hi,
I´ve just installed Slackware 14.0 and I´m having some problem.

I´m trying to setup a sendmail server to send me some alertmails from some scripts.
I´m using standard sendmail-slackware.mc file.
When I try to send an email to my external e-mail adress, the following is showing in the /var/log/maillog:

"Mar 27 08:12:35 foo sm-mta[1992]: r2R7CYT1001990: to=<email@adress.com>, ctladdr=<root@domainname.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120397, relay=mail-gw01.maildomain.com. [xxx.xxx.xxx.xxx], dsn=4.0.0, stat=Deferred: mail-gw01.emaildomain.com.: No route to host

When I try to send to my gmail-adress I get the following error:
Mar 27 18:52:00 foo sm-mta[2586]: r2RHoSAd002568: to=<email@adress.com>, ctladdr=<root@domainname.com> (0/0), delay=00:01:32, xdelay=00:00:04, mailer=esmtp, pri=120396, relay=alt4.gmail-smtp-in.l.google.com. [173.194.76.27], dsn=4.0.0, stat=Deferred: alt4.gmail-smtp-in.l.google.com.: No route to host

When I try to telnet to alt4.gmail-smtp-in.l.google.com 25 I get the following error:

telnet alt4.gmail-smtp-in.l.google.com 25
Trying 173.194.74.26...
telnet: connect to address 173.194.74.26: No route to host
Trying 2607:f8b0:400d:c01::1a...
telnet: connect to address 2607:f8b0:400d:c01::1a: Network is unreachable

Anyone? Please help me fix this problem!

Thanks in advance!

/Magnus
 
Old 03-28-2013, 05:26 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
You should check your gateway setting. Without a gateway, the system won't be able to communicate with nodes outside the local IP subnet.

To specify a gateway, run netconfig or edit /etc/rc.d/rc.inet1.conf. You can check the current setting with route -n.
 
Old 03-28-2013, 12:42 PM   #3
magnuspahlsson
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,
Output from route -n:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

I´m using eth0 and the gateway 192.168.1.1 is my router. I´ve tried to put my slackware IP in a DMZ with no result.

Any other ideas?

Thanks!

Regards.
 
Old 03-28-2013, 12:47 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
What's the IP address of the Slackware box? Can you ping the gateway?

Have you tried doing a traceroute to one of the addresses reported as unreachable (traceroute -n 173.194.74.26), or some other external address (traceroute -n 8.8.8.8)?
 
Old 03-28-2013, 12:53 PM   #5
magnuspahlsson
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
My Linux IP: 192.168.1.100

Output from traceroute -n 173.194.74.26:
traceroute to 173.194.74.26 (173.194.74.26), 30 hops max, 38 byte packets
1 90.231.176.1 6.324 ms 5.782 ms 6.158 ms
2 80.91.253.88 9.723 ms 213.155.130.4 9.556 ms 9.284 ms
3 213.155.135.182 9.993 ms 80.91.253.244 18.258 ms 213.155.135.174 9.565 ms
4 213.248.65.30 19.513 ms 80.91.246.106 21.158 ms 80.91.246.179 21.540 ms
5 213.155.133.99 19.527 ms 80.91.248.207 19.224 ms 19.188 ms
6 72.14.212.90 22.592 ms 23.968 ms 25.617 ms
7 216.239.43.246 21.096 ms 21.266 ms 216.239.43.248 20.147 ms
8 209.85.254.153 36.378 ms 209.85.241.192 37.353 ms 72.14.232.95 52.162 ms
9 216.239.47.13 44.405 ms 42.992 ms 44.048 ms
10 72.14.232.135 50.428 ms 58.401 ms 51.820 ms
11 72.14.235.91 127.646 ms 72.14.235.89 127.590 ms 127.991 ms
12 72.14.235.12 134.101 ms 132.702 ms 132.786 ms
13 72.14.234.53 132.323 ms 72.14.234.65 141.903 ms 177.069 ms
14 * * *
15 173.194.74.26 134.763 ms 133.461 ms 135.026 ms

traceroute to 174.137.125.66 (174.137.125.66), 30 hops max, 60 byte packets
1 192.168.1.1 0.367 ms 0.687 ms 0.791 ms
2 90.231.176.1 7.064 ms 7.717 ms 8.505 ms
3 80.91.253.80 12.664 ms 213.155.133.250 13.426 ms 80.91.245.194 14.581 ms
4 80.91.252.22 15.316 ms 80.91.245.158 15.569 ms 213.155.135.178 16.524 ms
5 213.155.130.155 110.339 ms 80.91.247.115 104.686 ms 105.538 ms
6 80.91.253.95 111.270 ms 213.155.130.251 112.952 ms 113.452 ms
7 213.248.81.150 114.377 ms 103.905 ms 104.788 ms
8 216.52.95.5 104.417 ms 216.52.95.69 106.403 ms 216.52.95.5 100.727 ms
9 216.52.93.94 101.318 ms 96.226 ms 96.408 ms
10 216.52.64.2 102.963 ms 99.632 ms 104.952 ms
11 216.52.66.122 98.615 ms 93.466 ms 99.463 ms
12 174.137.125.66 101.996 ms 102.265 ms 102.378 ms
 
Old 03-28-2013, 12:58 PM   #6
magnuspahlsson
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
The same problem when I try to use netdate:

/usr/sbin/netdate udp time.uni-freiburg.de

netdate: read: No route to host
Connection with udp to time.uni-freiburg.de failed.
 
Old 03-28-2013, 01:14 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Could your ISP be blocking certain outbound traffic? That would explain why the telnet test you did earlier (telnet alt4.gmail-smtp-in.l.google.com 25) failed, while a traceroute to the same address succeeds.

Filtering outbound tcp packets to port 25 as an anti-spam measure is quite common. Your ISP should have a smart host for outbound mail traffic, try telneting port 25 on that server and see what happens.
 
Old 03-30-2013, 01:53 AM   #8
magnuspahlsson
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
As You said, maybe my ISP is blocking my traffic.

I´m going to test my server at work in stead and see if it works.

Thanks for Your replays.
 
  


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
odd problem. No route to host, put can ping blackax Linux - Networking 11 01-12-2015 11:18 AM
SSH no route to host, also PING problem Z038 Linux - Networking 5 06-22-2008 05:59 PM
Home network problem - Centos - no route to host dralexpe Linux - Networking 2 06-30-2007 05:43 PM
Network Problem - No route to host Astral Projection Linux - Software 2 06-17-2006 04:55 PM
Problem with exporting/firewall , RPC: No route to host pinguscot Linux - Networking 1 11-05-2004 05:29 AM

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

All times are GMT -5. The time now is 12:01 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