LinuxQuestions.org
Help answer threads with 0 replies.
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 03-12-2005, 05:27 PM   #1
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
[solved] Routing problem?


I've got a router with 3 (three NICs), 2 that connect to 2 different ISPs and one for the LAN. I let the lan users choose their preferred ISP (speed/reliability trade-off). A few days ago I had a problem, that was that anyone going out on eth1 (eth2 is LAN) would get timeouts, but when switching to the second ISP (on eth0) would work all right...

Somehow I got it to work again by doing some interface restart... Today, I stumbled upon the same problem and this time it won't go away... If the router's default route is via eth1, I can ping out wherever I want from the server. Any LAN user would get timeouts and this would be reported by tcpdump -i eth1 'icmp':

Code:
01:07:09.469349 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 84
01:07:09.481696 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 84
01:07:09.481784 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:10.469194 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 85
01:07:10.483333 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 85
01:07:10.483434 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:11.468981 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 86
01:07:11.479700 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 86
01:07:11.479791 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:12.468799 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 87
01:07:12.498854 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 87
01:07:12.498952 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:13.468633 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 88
01:07:13.480465 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 88
01:07:13.480558 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:14.468896 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 89
01:07:14.486021 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 89
01:07:14.486117 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
01:07:15.469653 IP localhost > thorin.mediasat.ro: icmp 64: echo request seq 90
01:07:15.477948 IP thorin.mediasat.ro > localhost: icmp 64: echo reply seq 90
01:07:15.478041 IP localhost > thorin.mediasat.ro: icmp 92: time exceeded in-transit
...while tcpdump -i eth2 'icmp' (LAN) would return this...
Code:
01:07:09.469282 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 84
01:07:10.469099 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 85
01:07:11.468911 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 86
01:07:12.468726 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 87
01:07:13.468560 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 88
01:07:14.468828 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 89
01:07:15.469572 IP Alexx > thorin.mediasat.ro: icmp 64: echo request seq 90
I've got a gentoo router with a shorewall firewall, and I'd like to know what can cause the "time exceeded in-transit" message...

Last edited by eqxro; 03-14-2005 at 12:24 PM.
 
Old 03-14-2005, 12:23 PM   #2
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Original Poster
Rep: Reputation: 30
Okay, I solved this, it seems my ISP sent back al the packets with TTL=1 and they couldn't be forwarded anymore from my router (it would die on the server). I had to patch my kernel to be able to do something like iptables -t mangle -A PREROUTING -i eth1 -j TTL --ttl-set 64. The patch is patch-o-matic-ng, the TTL part only.
 
  


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
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
Serious problem of routing exalik Linux - Networking 1 05-03-2003 06:21 PM
Help With Routing Problem LAR12345 Linux - Networking 6 02-04-2003 02:40 PM
routing problem manthram Linux - Networking 6 04-01-2002 07:42 PM
Routing Problem mkhan Linux - Networking 1 07-01-2001 04:09 AM

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

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