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.
|
 |
03-27-2013, 12:58 PM
|
#1
|
LQ Newbie
Registered: Mar 2013
Posts: 5
Rep: 
|
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
|
|
|
03-28-2013, 05:26 AM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
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.
|
|
|
03-28-2013, 12:42 PM
|
#3
|
LQ Newbie
Registered: Mar 2013
Posts: 5
Original Poster
Rep: 
|
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.
|
|
|
03-28-2013, 12:47 PM
|
#4
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
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)?
|
|
|
03-28-2013, 12:53 PM
|
#5
|
LQ Newbie
Registered: Mar 2013
Posts: 5
Original Poster
Rep: 
|
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
|
|
|
03-28-2013, 12:58 PM
|
#6
|
LQ Newbie
Registered: Mar 2013
Posts: 5
Original Poster
Rep: 
|
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.
|
|
|
03-28-2013, 01:14 PM
|
#7
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
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.
|
|
|
03-30-2013, 01:53 AM
|
#8
|
LQ Newbie
Registered: Mar 2013
Posts: 5
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 12:01 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
|
|