OutdoorRouter XYZ Knowledge BaseOutdoorRouter XYZ Knowledge Base
  • Mobile
  • Wi-Fi
  • Firmware
  • Hardware
  • Development
  • Shop
  • Mobile
  • Wi-Fi
  • Firmware
  • Hardware
  • Development
  • Shop
home/Knowledge Base/Custom Firmware/How to change TTL to 65 on 4G router?

How to change TTL to 65 on 4G router?

507 views 0 December 29, 2022

The default TTL value on the 4G router is 64. In some conditions, we need to change the TTL value to 65. The TTL parameter is controlled by /etc/sysctl.conf. We can edit the “sysctl.conf” file via SSH terminal or WinSCP software.

After connected to the 4G router, access the router admin. Go to “System > Terminal” to access the SSH interface on the web page. We can also use PuTTY software to access the SSH interface.

Input the below command and press enter to check the current TTL value. If the return value includes “TTL=64”, follow the below steps to change the TTL value.

ping -c 3 localhost

Step 1 - Edit TTL on sysctl.conf

  1. Use the below command to open the configure file.
    vi /etc/sysctl.conf 
  2. Find a free line, and hit “Insert” on the keyboard to edit the configure file.
    Note: On a Mac computer, use Fn+i or Fn+Command+Return to insert a new line. 
  3. Add the below content on the free line.
    net.ipv4.ip_default_ttl=65 
  4. Hit “ESC” on the keyboard to stop editing
  5. Input “:wq” to save the configuration file and quit the VI editor.
  6. Reboot the router
  7. Use the above “ping -c 3 localhost” command to verify the TTL value.
Video Tutorial

Step 2 - Add Custom Firewall Rule

After logging into the router’s admin panel.
Navigate to “Network > Firewall.”
Click the “Custom Rules” tab.
Add the below scripts to the end of the input box.

iptables -t mangle -I POSTROUTING -o wwan0 -j TTL --ttl-set 65
TTL Value Firewall Custom Rules

Other TTL Values

In some oscillations, the TTL value needs to use the other value, such as 128.
To set the TTL value to 128, replace 65 with 128 on the above step 1 and 2.

Tags:4G TTLSIM TTLTTLTTL ValueRouter TTLLAN TTLWAN TTL

Was this helpful?

Yes  No
Related Articles
  • How to Book Remote Configuration Service for Your Router?
  • Fix-Wi-Fi Disconnects with iOS and Android Devices
  • 4G Router Firmware Backup Flash Operations
  • How to open NAT and UPnP on Xbox?

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

Knowledge Bases
  • Mobile Modem
  • Wi-Fi Hotspot
  • Custom Firmware
  • Network Hardware
  • Development
Popular Articles
  • Unbrick SIM Card Router with uBoot
  • Supporting Legacy Wi-Fi Devices
  • WiFi Output Power Settings
  • Adjust the Wi-Fi Output Power
  • 4G Router Firmware Backup Flash Operations

  How to open NAT and UPnP on Xbox?

4G Router Firmware Backup Flash Operations  

Supports
  • Mobile Modem
  • Wi-Fi Hotspot
  • Custom Firmware
  • Network Hardware
Outdoor Router
  • Outdoor 4G Router
  • Indoor 4G Router
  • Outdoor Wi-Fi Extender
  • High-gain 4G Antenna
Information
  • About Us
  • Case Studies
  • Shipping Service
  • Contacts
User’s Manual
  • EZR33 Outdoor Router
  • EZR34 Outdoor Router
  • EZR23 Indoor Router
  • EZR24 CAT12 Modem
  • © 2023 OutdoorRouter. All Rights Reserved.