Time To Live (TTL) on Router with 4G LTE Modem

I have a Router with OpenWRT and 4G Lte Built-in.
I want to do this (https://www.youtube.com/watch?v=82a6iY78K9g) but I dont have LuCi.

BusyBox v1.22.1 (2021-04-07 15:44:50 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (03, unknown)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao

And this is my ifconfig

root@cpe:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 8C:88:2B:00:00:19
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd65:6865:74f4::1/60 Scope:Global
          inet6 addr: fe80::8e88:2bff:fe00:19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:312925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:465873 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:159386312 (152.0 MiB)  TX bytes:508680885 (485.1 MiB)

eth0      Link encap:Ethernet  HWaddr 8C:88:2B:00:00:19
          inet6 addr: fe80::8e88:2bff:fe00:19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:243905 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:84913624 (80.9 MiB)  TX bytes:278126143 (265.2 MiB)
          Interrupt:3

eth0.1    Link encap:Ethernet  HWaddr 8C:88:2B:00:00:19
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158364 errors:0 dropped:3 overruns:0 frame:0
          TX packets:242851 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:82057838 (78.2 MiB)  TX bytes:276735166 (263.9 MiB)

eth0.2    Link encap:Ethernet  HWaddr 8C:88:2B:00:00:1A
          inet6 addr: fe80::8e88:2bff:fe00:1a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1045 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:356430 (348.0 KiB)

eth1      Link encap:Ethernet  HWaddr AC:50:43:88:E7:DA
          inet addr:10.15.96.192  Bcast:10.15.96.255  Mask:255.255.255.0
          inet6 addr: fe80::ae50:43ff:fe88:e7da/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:467521 errors:0 dropped:0 overruns:0 frame:0
          TX packets:312967 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:502048853 (478.7 MiB)  TX bytes:177160201 (168.9 MiB)

eth1.1    Link encap:Ethernet  HWaddr 00:11:22:33:44:57
          inet6 addr: fe80::211:22ff:fe33:4457/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:408 (408.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:34053 (33.2 KiB)  TX bytes:34053 (33.2 KiB)

ra0       Link encap:Ethernet  HWaddr E4:7D:EB:51:7B:EA
          inet6 addr: fe80::e67d:ebff:fe51:7bea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158918 errors:1 dropped:0 overruns:0 frame:0
          TX packets:223660 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:83666406 (79.7 MiB)  TX bytes:228631323 (218.0 MiB)
          Interrupt:4

I'll thank you.

14.07 is a really ancient release (2014).
You need to ssh into it and edit /etc/sysctl.conf. Add the following to the bottom (in this example TTL 65 is used)
net.ipv4.ip_default_ttl=65
net.ipv6.ip_default_ttl=65

1 Like

Thank you so much!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.