Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ipt_TTL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
COuder
n00b
n00b


Joined: 04 Jan 2004
Posts: 2
Location: Finland

PostPosted: Sun Jan 04, 2004 7:01 pm    Post subject: ipt_TTL Reply with quote

Could somebody tell me, is there a ipt_TTL module in new 2.6.0-gentoo kernel? Or maybe I'm just blind, cos I can't find it...
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Mon Jan 05, 2004 10:58 am    Post subject: Reply with quote

I'm not sure about the Gentoo kernel because I don't use it, but that module is definitely in the 2.6.0 vanilla kernel, so I'd guess it's in 2.6.0-gentoo as well. You can look in the
Code:
/usr/src/linux/net/ipv4/netfilter

directory for the file
Code:
ipt_ttl.c

If it exists there then your kernel has it.
In my kernel the option for it is under Device Drivers->Networking Support->Networking Options->Network packet filtering (replaces ipchains)->IP: Netfilter Configuration->IP Tables support.
Back to top
View user's profile Send private message
COuder
n00b
n00b


Joined: 04 Jan 2004
Posts: 2
Location: Finland

PostPosted: Mon Jan 05, 2004 8:03 pm    Post subject: Reply with quote

Yes, that ipt_ttl module is in my kernel, but in my iptables script
this line gives me an error:

$IPT -t mangle -A OUTPUT -o $INET_IFACE -j TTL --ttl-set 128
iptables: No chain/target/match by that name

modprobe ipt_ttl is in my script and lsmod shows that it's loaded.

I get error in /var/log/everything....
[modprobe] FATAL: Module ipt_TTL not found.

So, I thought if there should be two ttl modules(ipt_ttl, ipt_TTL) in kernel. But there is not I have checked several times.

Anyway could somebody tell me how do I get this TTL -setting work?
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Mon Jan 05, 2004 11:31 pm    Post subject: Reply with quote

COuder wrote:

So, I thought if there should be two ttl modules(ipt_ttl, ipt_TTL) in kernel. But there is not I have checked several times.


That's right there is 2 ttl modules around. One is a match and one is a target. Only one (the match) is in the vanilla 2.6 kernel.

COuder wrote:

Anyway could somebody tell me how do I get this TTL -setting work?


You either have to wait for iptables team to release a patch-o-matic for 2.6 (which they claim to be doing soon), patch it in yourself by hand.
Back to top
View user's profile Send private message
Mnemia
Guru
Guru


Joined: 17 May 2002
Posts: 476

PostPosted: Tue Jan 06, 2004 12:02 am    Post subject: Reply with quote

Sorry I misunderstood your question C0uder. I'm betting however (if you're familiar with C programming) that as mentioned above you could pretty easily hack the TTL target module into the kernel. I've written new modules for iptables before and it was not difficult. I'd just use patch-o-matic to get the module you need in a 2.4 kernel, and then copy the source over to 2.6 and hack on it and the makesfiles in order to get it to compile. Shouldn't be too hard at all since you'll have the whole source already.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum