LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-02-2004, 03:34 PM   #1
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Rep: Reputation: 15
Question TTL for kernel 2.6.6


hello,

I'm trying to make an ip-table script for my dedicated router/firewall machine. Routing works fine but there is a problem with setting the packets time to live (TTL).

Without adding the TTL rule I receive no errors on running the script, but on adding the following rule at the end :

$IPT -t mangle -A OUTPUT -o $EXTIF -j TTL --ttl-set 64

I get this output (in verbose mode) on running the script:

>>Load rules for mangle table...
>>TTL all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 TTL set to 64
>>iptables: No chain/target/match by that name

The final line shows something is wrong,
However, TTL seems to work according to the previous line and to testing from "outside" computers with ping (I always get a TTL of 64 returned). Should I simply ignore this?

I am using kernel 2.6.6,
have been looking a long time for the TTL-patch to 2.6 kernels and finally downloaded the tarball :
http://cvs.netfilter.org/cgi-bin/vie...TTL/linux-2.6/
and untarred it into my /usr/src
after that recompiled my kernel
(is this ok for installing the patch? never did this before)

One last question, as you can see in the second output line
>>TTL all opt -- in * out eth0 0.0.0.0/0 -> 0.0.0.0/0 TTL set to 64
it says this IP thing 0.0.0.0/0 at several lines in the script output, what does this mean?

thanks in advance!

kingka
 
Old 06-03-2004, 11:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,950
Blog Entries: 54

Rep: Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732
If you don't mind me asking, what do you need it for? TTL is just another /proc setting, innit?
 
Old 06-03-2004, 01:01 PM   #3
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Original Poster
Rep: Reputation: 15
I have read that ISP's use it to see if you have more than one computer on the same internet connection.

http://iptables-tutorial.frozentux.n...html#TTLTARGET
several other tutorials/howtos say this
but I just can't get TTL working properly with my 2.6.6 kernel
 
  


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
TTL change Cubiq Linux - Networking 11 08-13-2006 03:50 PM
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 09:18 AM
TTL value is set to zero vkrishn1 Linux - Networking 0 01-11-2005 04:35 PM
Dns TTL (?) JJX Linux - Networking 0 11-03-2004 02:52 PM
How to change TTL value? etvagonema Linux - Networking 2 04-19-2004 11:55 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration