R
R
Roqvie2020-05-31 00:15:03
network hardware
Roqvie, 2020-05-31 00:15:03

How to change TTL of all output traffic in MikroTik?

You need to change the TTL of all output traffic in the LTE modem. Already created the following in the mangle:

/ip firewall mangle add action=change-ttl chain=postrouting new-ttl=set:65 out-interface=lte1

But it seems that not all traffic goes through this rule.
/ip firewall mangle print stats
Flags: X - disabled, I - invalid, D - dynamic 
 #    CHAIN                                                                                                         ACTION                            BYTES         PACKETS
 0  D ;;; special dummy rule to show fasttrack counters
      prerouting                                                                                                    passthrough                   4 671 897           7 704
 1  D ;;; special dummy rule to show fasttrack counters
      forward                                                                                                       passthrough                   4 671 897           7 704
 2  D ;;; special dummy rule to show fasttrack counters
      postrouting                                                                                                   passthrough                   4 671 897           7 704
 3    postrouting                                                                                                   change-ttl                      276 555           1 462

What needs to be done additionally so that all traffic goes through it? Or am I missing something in this statistic?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
akelsey, 2020-05-31
@Roqvie

This option works great for me. (do not specify interface, pathtrough=yes)

/ip firewall mangle
add action=change-ttl chain=postrouting new-ttl=set:65 passthrough=yes

P
PAPIruss, 2020-07-15
@PAPIruss

Mac address does not participate in mobile sessions. It is necessary to change IMEI, say, to zero or some other, as an option from a broken smartphone or GSM phone. In the case of Mikrotik, this is enough + change TTL, of course. Checked everything works. Mikrotik on their LTE modems (R11e for example) has the same poppy for everyone and it doesn’t beat at all in the manufacturers’ databases, so it’s not clear what it is ...

J
jahrider, 2022-02-15
@jahrider

Thank you for your help, the Internet has earned. The settings from akelsey
helped me. I'm not very familiar with the topic, please tell me something else.
When the SIM card is in the phone, the speed parameters are as follows:
620b665f35f98095845724.jpeg
When I inserted the SIM card into the router, the speed dropped:
620b6731d44d9505976043.jpeg
After setting the TTL, the indicators improved significantly, but UPLOAD is still almost three times lower. Is this normal or is there something else I can tweak to improve performance?
620b666b5d94e517930075.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question