What's new

GT-AX6000 TTL Configuration

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jcrm2

New Around Here
I upgraded my router from AX86u to GT- AX6000 and installed Merlin firmware 386.7_2. I'm trying to set the TTL on the new router. I am able to do so but I notice If i change a setting or reboot the router, the TTL reverts back to default. I noticed right away under Administration- System- Persistent JFFS2 partition, there is no option for "Format JFFS partition at next booth". This will explain why! I've read that these new models don't use JFFS2, they use UBIFS for that partition. Is there another way I can set the TTL or just any scrpit to stay after a reboot on the AX6000?

I don't mind manually changing the TTL after a reboot. I mean how many times in the year do you actually reboot a network router. However after testing with changing a simple setting or channel on the router, the ttl reverts back to default. So it defeats the whole purpose.
 
Formatting JFFS has nothing to do with setting the TTL. How/where are you setting the TTL value currently?

P.S. Your title has a typo, there's no such router as a GT-RX6000.
 
Formatting JFFS has nothing to do with setting the TTL. How/where are you setting the TTL value currently?

P.S. Your title has a typo, there's no such router as a GT-RX6000.
ops! Changed the title... So I'm trying to use the below command to stay after a reboot.

nano /jffs/scripts/nat-start

#!/bin/sh
sleep 10
modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

chmod a+rx /jffs/scripts/*
 
ops! Changed the title... So I'm trying to use the below command to stay after a reboot.

nano /jffs/scripts/nat-start

#!/bin/sh
sleep 10
modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

chmod a+rx /jffs/scripts/*
That is an old incorrect script.

Create a firewall-start script as follows:
Code:
#!/bin/sh
modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

P.S. You must set "Extend TTL value" and "Spoof TTL value" to "No" under WAN - Internet Connection > Special Requirement from ISP
 
Last edited:
That is an old incorrect script.

Create a firewall-start script as follows:
Code:
#!/bin/sh
modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

P.S. You must set "Extend TTL value" and "Spoof TTL value" to "No" under WAN - Internet Connection > Special Requirement from ISP

For some reason it's not sticking after a reboot.

nano /jffs/scripts/firewall-start

#!/bin/sh
modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

chmod a+rx /jffs/scripts/*

F2-
Y- Yes
Enter

Then I copied it again

modprobe xt_HL
modprobe xt_hl
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

Reboot

Is that correct?
 
I can't tell what exactly you're doing from that output.

How do you know it's "not sticking"?

Did you delete the old nat-start file?

Did you enable custom scripts on the GUI?

Check the firewall-start script has been created correctly:
Code:
ls -l /jffs/scripts/firewall-start
cat /jffs/scripts/firewall-start

Check whether it's worked after a reboot:
Code:
iptables-save -t nat
 
I can't tell what exactly you're doing from that output.

How do you know it's "not sticking"?

Did you delete the old nat-start file?

Did you enable custom scripts on the GUI?

Check the firewall-start script has been created correctly:
Code:
ls -l /jffs/scripts/firewall-start
cat /jffs/scripts/firewall-start

Check whether it's worked after a reboot:
Code:
iptables-save -t nat

I removed the nat-start file before anything. I reset the router to make sure everything was completely deleted.

I am not to sure if I did enabled custom scripts on the GUI. Can you help me navigate there?

When I checked the firewall-start script that was created using the commands down below, everything seems to be intact.

Capture.JPG



When I check to see if worked after reboot I get this:
Capture2.JPG


Usually when I check to see if it's working, I usually ping the router 192.168.2.1 but I keep getting ttl default 64.
Capture3.JPG
 
I am not to sure if I did enabled custom scripts on the GUI. Can you help me navigate there?
Administration - System > Enable JFFS custom scripts and configs = Yes


When I checked the firewall-start script that was created using the commands down below, everything seems to be intact.

View attachment 45366
That is wrong. The line chmod a+rx /jffs/scripts/* should not be inside the script. You type it into the command line to make the script executable.

EDIT: Sorry, there was a typo in the command I gave you earlier to check that it's worked. It should have been:
Rich (BB code):
iptables-save -t mangle
 
Last edited:
Administration - System > Enable JFFS custom scripts and configs = Yes



That is wrong. The line chmod a+rx /jffs/scripts/* should not be inside the script. You type it into the command line to make the script executable.

EDIT: Sorry, there was a typo in the command I gave you earlier to check that it's worked. It should have been:
Rich (BB code):
iptables-save -t mangle

Okay, I did have "Enable JFFS custom scripts and configs" = Yes

I went back and removed line, chmod a+rx /jffs/scripts/* and resaved

Capture4.JPG


however I'm still pinging ttl 64. I wonder what I'm missing?
 
Code:
ls -l /jffs/scripts/firewall-start
cat /jffs/scripts/firewall-start

iptables-save -t mangle
 
Code:
ls -l /jffs/scripts/firewall-start
cat /jffs/scripts/firewall-start

iptables-save -t mangle

Okay, when I use line "iptables-save -t mangle" it looks like its set.
Capture6.JPG


When I do a quick ping to the router its set as well. But it's when I do reboot it goes back to 64. smh

Capture7.JPG
 
Do you actually have a modem or router plugged into the WAN port of this router? You didn't in one of your earlier screen shots.

What are to trying to achieve by doing this?
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top