FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
2,081 views 5 comments
by anonymous
Hello.

Is there a way to modify ttl +1 on this lte router ?

1 Answer

0 votes
by anonymous

Hello,

In order to set a custom TTL value for a mobile interface, follow these steps:

1. Login to the router's CLI.
2. Execute the following command to open rc.local file in a text editor: vi /etc/rc.local
3. Press "i" button on your keyboard to start editing the file.
4. Insert the following line: iptables -t mangle -I POSTROUTING -o wwan0.1 -j TTL --ttl-set X
5. Press "Esc" button on your keyboard and enter ":x" to save the file.
6. Execute the following command to run the sript: sh /etc/rc.local

X is a custom TTL value

by anonymous
This mean that all clients will have the same ttl when they will “leave“ router, and will go to lte/3g ?
by anonymous

Yes, you are correct. If you only want to increase a TTL value of the outbound packets that are sent via mobile interface use the following rule:

iptables -t mangle -I POSTROUTING -o wwan0.1 -j TTL --ttl-inc X

X is an increment of TTL value.

by anonymous
Is there an update or some additional steps to this?

Was not able to see any confirmation after typing ".x" that verified the file saved.
by anonymous
Hello, i tried but i can't change my ttl value. I think i did all steps correct but when i send ping command on cli ttl value is 64. Someone can help me for changing ttl value on my rutx12 ?
by anonymous

Try the following commands:

  • /etc/init.d/firewall restart
  • iptables -t mangle -I PREROUTING -i wwan0 -j TTL --ttl-set <n>
  • ping 8.8.8.8

Replace <n> with your value.

Best regards,