Community discussions

MikroTik App
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

How to set router TTL?

Tue Jan 12, 2021 12:14 am

I've been trying to get this set up on my new LHG LTE-US router

Im using verizon , and have tried a few options

Any help would be fantastic

Stav
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Tue Jan 12, 2021 5:15 pm

Bump

Anyone able to help? I work from home so going mobile with all this covid crap would be a great help for my family's mental health
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: How to setup Mikrotik router and TTL

Tue Jan 12, 2021 5:18 pm

How about asking a question. The subject is so vague, and other than that, you don't tell us what you are trying to do, or what you need help with.
 
erlinden
Forum Guru
Forum Guru
Posts: 1959
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: How to setup Mikrotik router and TTL

Tue Jan 12, 2021 5:19 pm

Can you please share the configuration (/export hide-sensitive file=anythingyoulike)?
What have you tried, what are you trying and what problems are you running into?
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 4:03 pm

I'll get it setup today and fun that report @erlinden

So far I've been reading up but cZnt find a difinitive solution to change the TTL

So hopefully you experts can guide me in the right direction
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 5:46 pm

Repeating @k6ccc's question: what do you want to achieve, or what problem you are trying to address? This forum can answer you any question regarding Mikrotik configuration, but you haven't asked a clear question yet.
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 5:52 pm

Trying to adjust the TTL settings in the Mikrotik router to bypass the HOTSPOT data usage when my Verizon card is used on the dish

So I'm able to use unlimited data , as a phone does, and not use the hotspot data

Does that make sense??
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 6:02 pm

Now yes 🙂
I'll comment in a while.
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 6:12 pm

Now yes 🙂
I'll comment in a while.
Thanks, I appreciate the help
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: How to setup Mikrotik router and TTL

Wed Jan 13, 2021 6:23 pm

To manipulate TTL, you use an action=change-ttl rule in /ip firewall mangle.

The own traffic of the router should leave with TTL=255, but even that may not always be the case, so you need a mangle rule in chain postrouting which handles both the router's own traffic (such as DNS) and the forwarded traffic from LAN.

/ip firewall mangle add chain=postrouting action=change-ttl new-ttl=set:255 ttl=greater-than:200 out-interface=your-lte-interface-name

In order that it worked, you must not use fasttracking (so disable the action=fasttrack-connection rule in /ip firewall filter if there is one) because one of the reasons why fasttracking speeds up packet processing is that it skips mangle rules.

If you happen to already have any other mangle rules in chain postrouting, first issue a command /ip firewall mangle print chain=postrouting where !dynamic, and only then issue the command above with additional parameters passthrough=yes place-before=0.

Whether this will help or not is a question, as the mobile operator may also check the IMEI of the equipment, not just the TTL, an even not accept connection to particular LTE bands for "wrong" IMEIs.

The additional condition (ttl=greater-than:200) is there to allow traceroute to work (using the hotspot data quota probably). If you're never going to use traceroute, you may omit this condition.
Last edited by sindy on Thu Jan 14, 2021 8:09 am, edited 1 time in total.
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Fri Jan 22, 2021 7:53 pm

I just set this up... I think...lol

did this in the terminal window
/ip firewall mangle add chain=postrouting action=change-ttl new-ttl=set:255 ttl=greater-than:200 out-interface=LTE1

seemed to accept it

How do I test it, verify that it took

Thanks all

Chris
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: How to setup Mikrotik router and TTL

Fri Jan 22, 2021 8:44 pm

If it didn't give any error message, the rule got accepted. A command /ip firewall mangle export will show you all the mangle rules. If there is just this single one, you're good; if there are more, they may need to be modified/reordered. So if in doubt, post the output of /ip firewall mangle export here.

To check whether the rule is actually doing something, you have to run /tool sniffer quick interface=LTE1 for a short while (seconds), and then /tool sniffer packet print detail where protocol=ip will show you that packets have been really stored, and /tool sniffer packet print detail where protocol=ip ttl<255 src-address~"the.address.assigned.to.lte" will show you whether the rule does its job - if it does, the output of this command will be empty.
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Fri Jan 22, 2021 10:07 pm

Thanks Sindy

It did take

Im actually running the Router/Dish now and monitoring the VERIZON data usage on the website to see if its loggin as DATA or HOTSPOT


Ill post back with what I find out

Thanks everyone who helped on here.... Much Love
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Sat Jan 23, 2021 3:34 am

Didn't work

Still showing as HOTSPOT data usage on Verizon account

Any ideas why

Probably need to post some reports. Let me know what I should try

Thank again

Chris
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Sun Jan 24, 2021 3:08 am

so got it to work

was actually pretty easy once i learned a bit from everyone here

So easy explanation

Firewall and Mangle

Plus Sign Add New Mangle Rule
General Tab... Chain-- postrouting...
Out. Interface LTE1

Action Tab
Action-- Change TTL
New TTL --- 65

Click apply


I ran it for about 3hrs... Used 6.5G of data, none as HOTSPOT

Thanks again to everyone who helped, especially Sindy.... Much Love
 
alushchykau
just joined
Posts: 16
Joined: Fri Aug 20, 2021 8:56 am

Re: How to setup Mikrotik router and TTL

Sun Aug 22, 2021 11:38 pm

so got it to work

was actually pretty easy once i learned a bit from everyone here

So easy explanation

Firewall and Mangle

Plus Sign Add New Mangle Rule
General Tab... Chain-- postrouting...
Out. Interface LTE1

Action Tab
Action-- Change TTL
New TTL --- 65

Click apply


I ran it for about 3hrs... Used 6.5G of data, none as HOTSPOT

Thanks again to everyone who helped, especially Sindy.... Much Love
What about the Passthrough option in the Action tab, by default, it's marked?
 
Stavman
just joined
Topic Author
Posts: 10
Joined: Tue Jan 12, 2021 12:08 am

Re: How to setup Mikrotik router and TTL

Thu Jun 16, 2022 7:51 pm

So with the above setup..been having issues with upload speed

Phone will get 4g upto 15g upload, but Sim Card in the Mikrotik dish I'll get less than one

Any ideas
 
User avatar
Znevna
Forum Guru
Forum Guru
Posts: 1347
Joined: Mon Sep 23, 2019 1:04 pm

Re: How to setup Mikrotik router and TTL

Fri Jun 17, 2022 9:02 am

One year later and you still ask vague questions with vague descriptions of the problem.
Try again.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How to setup Mikrotik router and TTL

Fri Jun 17, 2022 12:29 pm

Stavman, your problem now is different, open another topic with adequate title and a detailed description of devices and configuration.

Who is online

Users browsing this forum: Bing [Bot], JesusMarino, RBrogen and 139 guests