LinuxQuestions.org
Visit Jeremy's Blog.
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 04-12-2004, 05:33 AM   #1
queezythegreat
LQ Newbie
 
Registered: Jul 2003
Location: Canada
Distribution: Red Hat Linux 9.0 / Gentoo
Posts: 15

Rep: Reputation: 0
TTL exceeds on Gateway how can I fix that?


Man have I had rough weekend!!
Can anyone tell my why my gateway is getting back packets with their TTL equal 1? I'm able to ping hosts on the internet using their IP address, but when I try to ping them using their DNS name the DNS Server responds with a ICMP type 11 packet. I don't know why this is happening!! By the way, this gateway is behind two other gateways. I'v searched the Internet for 2 day and haven't found anything, the only thing that I can think of, is to mangle the TTL field of packets, but I want to find a easier solution to this problem. Thanks in advance for you help to this rather annoying problem.

PS:

I don't have any problems with my local network just with the Internet.
 
Old 04-12-2004, 04:04 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
You might have a "metric=1" line in your ifconfig setup. Try getting rid of that. It should be in /etc/rc.d somewhere.
 
Old 04-13-2004, 03:37 AM   #3
queezythegreat
LQ Newbie
 
Registered: Jul 2003
Location: Canada
Distribution: Red Hat Linux 9.0 / Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
I've looked in /etc/rc.d and there is nothing there that is setting metric=1, I tried setting the interfaces manualy using ifconfig, but ifconfig returns SIOCSIFMETRIC: Operation not supported for every interface that a wan't to change. Tnx for your help anyway.
 
Old 04-24-2004, 02:25 PM   #4
queezythegreat
LQ Newbie
 
Registered: Jul 2003
Location: Canada
Distribution: Red Hat Linux 9.0 / Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Okey after doing some lengthy research I have found a solution to this rather stupid problem. The problem appeared because my stupid ISP was filtering packets on their gateway with the TTL field lower than the default value!!! Why where they doing this??? simple, because they where trying to get rid of people that NATing on their network. So how did I outwit my ISP? By hack the kernel :-D In the net/ipv4/ip_forward.c source file I commented out the following two line that are responsible for decrementing the TTL field of the packet being forwarded and returning a ICMP message when the TTL field is less or equal to 1:
goto to_many_hoops;
ip_decrease_ttl(iph);
Then I recompiled my kernel and voila, a working gateway!!!!! Hope that this will he somebody in the future.

Peace out...
 
Old 04-24-2004, 02:30 PM   #5
queezythegreat
LQ Newbie
 
Registered: Jul 2003
Location: Canada
Distribution: Red Hat Linux 9.0 / Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
PS: If you use these instructions please note that you are breaking RFC standards. Every router/gateways has to decrement the TTL field so that packets don't get to live for ever if the start looping continuously because of bad routers.
 
  


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
Error 18: Exceeds Bios pridefc Linux - Software 0 11-13-2005 05:21 AM
Router/Gateway - Small Fix/Need Help... dolvmin Linux - Networking 1 11-03-2005 05:06 PM
Nic card changes Gateway address for ppp0 How can I fix this? Tiyogi Red Hat 2 03-30-2004 09:45 PM
Booting: Device 0x0309 exceeds 1024 cylinder Freeek Linux - Newbie 1 09-27-2003 12:46 PM
Triple boot cylinder exceeds maximum supported by the bios wlfdgcrkz Linux - Software 1 06-15-2003 11:14 PM

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

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