Community discussions

MikroTik App
 
hqvnet
just joined
Topic Author
Posts: 7
Joined: Thu Feb 14, 2008 3:00 am

Mikrotik 3.0 is possible TTL Packet mark?

Thu Feb 14, 2008 3:07 am

This possible mark packet for ttl in mikrotik 3.0?

execuse my bad english.

I need to block ttl <128, to permit only packet ttl 128 (windows) and ttl 64 (linux), for sharing block, in Linux is simple, but, in mikrotik I don´t.

This is possible in new mikrotik (beta)?
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: Mikrotik 3.0 is possible TTL Packet mark?

Thu Feb 14, 2008 5:35 am

You can change the TTL with mangle rules.

Here is an example that changes the TTL to 1 for all packets destined for 192.168.10.*

/ip firewall mangle add action=change-ttl chain=postrouting disabled=no dst-address=192.168.10.0/24 new-ttl=set:1
 
hqvnet
just joined
Topic Author
Posts: 7
Joined: Thu Feb 14, 2008 3:00 am

Re: Mikrotik 3.0 is possible TTL Packet mark?

Thu Feb 14, 2008 7:06 am

This does not work perfectly, I need only allow the tll 128 and ttl 64, to set ttl for 1, no working perfectly and allow windowx xp sharing
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: Mikrotik 3.0 is possible TTL Packet mark?

Thu Feb 14, 2008 7:17 am

Have you tried setting the TTL to 0?

-Louis
 
hqvnet
just joined
Topic Author
Posts: 7
Joined: Thu Feb 14, 2008 3:00 am

Re: Mikrotik 3.0 is possible TTL Packet mark?

Thu Feb 14, 2008 7:22 am

yes, not working, ttl 0 no break sharing connection.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: Mikrotik 3.0 is possible TTL Packet mark?

Wed Sep 16, 2009 11:06 am

About this subject: I tried it and sniffed the packets. TTL is being changed. But Win ICS is still able to share the connection, I don't know, maybe MS did something.

So for now on two networks we are doing the reverse thing - detecting ttl that is not 128 and not 64 and adding the client to a list or marking the packets.

But this is still stupid because 90% of these bastarbs use a home router. And the competition lets 'em have whatever TTL so ... this is useful when theres no competition.
 
ayufan
Member
Member
Posts: 334
Joined: Sun Jun 03, 2007 9:35 pm
Contact:

Re: Mikrotik 3.0 is possible TTL Packet mark?

Wed Sep 16, 2009 11:15 am

I use TTL to hide routers from traceroute ;)
 
ivancarrascoq
just joined
Posts: 3
Joined: Tue Nov 26, 2013 9:56 pm
Location: Chile
Contact:

Re: Mikrotik 3.0 is possible TTL Packet mark?

Tue Nov 26, 2013 10:08 pm

when TTL changes?
A: Each time the packet pass through L3 device (Firewall, Router, Nat,...) TTL = TTL - 1.

I've tried the follow setting in my L2 network:
 ip firewall mangle add chain=postrouting action=change-ttl disabled=no new-ttl=set:0 passthrough=yes out-interface=bridge-la
n
No nat/routing between clients and Mk and it works perfectly! :D

Best regards,
Iván Carrasco Q.