LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-08-2007, 07:55 AM   #1
Chiranjib Pal
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
How to change the TTL Value?


hi,
I am trying to change the TTl value using this

#iptables -t mangle -A PREROUTING -i eth0 -j TTL --ttl-set ***

but it is showing

iptables: No chain/target/match by that name

shall i have to download patch-o-matic?? if yes give me the path of that file and also tell me how to install.

thanks,
chiranjib
 
Old 08-11-2007, 06:20 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
iptables -t mangle -A POSTROUTING -o eth0 -j TTL --ttl-set ##
 
Old 08-12-2007, 11:24 PM   #3
Chiranjib Pal
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Original Poster
Rep: Reputation: 0
hi,,
It is giving the same output.

#iptables -t mangle -A POSTROUTING -o eth0 -j TTL --ttl-set **
iptables: No chain/target/match by that name

regards,
chiranjib

Last edited by Chiranjib Pal; 05-26-2008 at 07:10 AM.
 
Old 08-12-2007, 11:33 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Have you loaded the ipt_ttl module?
 
Old 08-13-2007, 09:22 AM   #5
Chiranjib Pal
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Original Poster
Rep: Reputation: 0
ipt_ttl module

can u tell me how to load the module??

regards,
chiranjib
 
Old 08-13-2007, 06:53 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
As root:
modprobe ipt_ttl

You should add that to your firewall script too.
 
Old 08-13-2007, 11:35 PM   #7
Chiranjib Pal
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Original Poster
Rep: Reputation: 0
hi,

I did the followings :

# modprobe ipt_ttl

# lsmod | grep ttl
ipt_ttl 1857 0
ip_tables 19521 4 ipt_ttl,iptable_nat,iptable_filter,iptable_mangle

# iptables -t mangle -A PREROUTING -i eth0 -j TTL --ttl-set **
iptables: No chain/target/match by that name


still the TTL value hasn't change........
how to add modprobe ipt_ttl to my firewall script???


regards,
chiranjib

Last edited by Chiranjib Pal; 05-26-2008 at 07:10 AM.
 
Old 08-16-2007, 08:17 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Hum? It seems there are 2 modules.
Try this:
modprobe ipt_TTL

<edit>
One is for modifying the TTL and the other is for matching TTL.
Quote:
how to add modprobe ipt_ttl to my firewall script???
You just find your firewall script, for example Slackware's would be:
/etc/rc.firewall
And add that modprobe somewhere in the script. Probably there will be a section with other modprobe statements.

Last edited by /bin/bash; 08-16-2007 at 08:24 PM.
 
Old 08-17-2007, 04:35 AM   #9
Chiranjib Pal
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Original Poster
Rep: Reputation: 0
hi,
I did the follwings

# modprobe ipt_TTL
FATAL: Module ipt_TTL not found.

I also find for rc.firewall
it is not there.

regards,
chiranjib

Last edited by Chiranjib Pal; 05-26-2008 at 07:10 AM.
 
Old 08-17-2007, 05:24 AM   #10
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
- you said;
# lsmod | grep ttl
ipt_ttl 1857 0
ip_tables 19521 4 ipt_ttl,iptable_nat,iptable_filter,iptable_mangle

so why should
modprobe ipt_TTL work ??

btw. how about
modprobe ipt_ttl

but it's useless cause
lsmod said that you already got loaded it.


and as "/bin/bash" already said:
You just find your firewall script, for example Slackware's would be:
/etc/rc.firewall
(SLACKWARE - do you use slackware..?)
 
Old 08-17-2007, 08:17 PM   #11
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
You obviously don't have ipt_TTL module built for your kernel.

If you run make menuconfig, its under:
Networking -> Networking Options -> Network packet filtering framework (Netfilter) -> IP: Netfilter Configuration -> TTL target support

Quote:
Posted by odcheck
so why should
modprobe ipt_TTL work ??
Notice there are 2 modules:
ipt_ttl and ipt_TTL
ipt_ttl is if you wnat to match a packet by the TTL value.
ipt_TTL is if you want to modify the TTL value.
 
Old 08-17-2007, 09:17 PM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Quote:
I also find for rc.firewall
it is not there.
One of the keys to getting questions answered in Linux is providing the Distro and version that you are using. You might also post relevant programs like, if you are asking an iptables question you would post what firewall program you are using, if any, your netfilter version, kernel version, etc...
 
  


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
change TTL luboiron Slackware 1 12-18-2006 06:27 PM
TTL change Cubiq Linux - Networking 11 08-13-2006 03:50 PM
TTL value gabsik Linux - Networking 7 04-21-2006 04:07 AM
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 09:18 AM
How to change TTL value? etvagonema Linux - Networking 2 04-19-2004 11:55 AM


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