LinuxQuestions.org
Review your favorite Linux distribution.
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 05-27-2005, 11:45 AM   #1
Roger Krowiak
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 38

Rep: Reputation: 18
Question [SOLVED]Cannot set the TTL for packets


Hi all,

I'm trying to set the TTL for outgoing traffic in iptables (to hide computers behind firewall). After adding this two lines of code

Code:
iptables -v -t mangle -A OUTPUT -o eth0 -j TTL --ttl-set 128
iptables -v -t mangle -A FORWARD -o eth0 -j TTL --ttl-set 128
I've got following error report:

Code:
TTL  all opt -- in * out eth0  0.0.0.0/0  -> 0.0.0.0/0  TTL set to 128
iptables: No chain/target/match by that name
TTL  all opt -- in * out eth0  0.0.0.0/0  -> 0.0.0.0/0  TTL set to 128
iptables: No chain/target/match by that name
The lines in iptables config are OK according to me and I'm very confused with the error message. Do you have any idea about this?

Linux distribution - Slackware current
Kernel - 2.6.11.10
if you need more info, please write.

Last edited by Roger Krowiak; 05-29-2005 at 02:43 PM.
 
Old 05-29-2005, 02:42 PM   #2
Roger Krowiak
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 38

Original Poster
Rep: Reputation: 18
Well now I know the answer, the TTL target extension was not included in kernel, patching using patch-o-matic was needed to install this extension, now it works fine. I have one minor question: on netfilter.org is procedure how to download CVS version of patch-o-matic:

Code:
cvs -d :pserver:cvs@pserver.netfilter.org:/cvspublic login
using password cvs, but there is always error

Code:
cvs [login aborted]: connect to pserver.netfilter.org(213.95.27.115):2401 failed: Connection refused
so I had to use almost year old version from http://www.netfilter.org/files/patch...040621.tar.bz2. Do you know how/from where can be the latest version obtained? Thanks.

Last edited by Roger Krowiak; 05-29-2005 at 02:46 PM.
 
  


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
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 09:18 AM
How can I set my firewall to log all dropped(rejected) packets? abefroman Linux - Security 4 06-14-2005 09:37 PM
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
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM

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

All times are GMT -5. The time now is 05:49 PM.

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