I'm an idiot and need help with putty.

Jmcclure85

New Around Here
I have an rt86u that i have the latest merlin loaded. i can putty into it so ive gotten that far.
what i am trying to do is spoof the ttl number.

Here is my code that i need to enter


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/*

This was given to me and ive seen it work on another router.

Once in putty and im at the terminal how do i enter this? All at once or line by line.


i was also told to check these two boxes. i assume i check them then do the putty commands then reboot the router?
Enable JFFS custom scripts and configs
Format JFFS partition at next boot

Sorry im new to this and hope i posted in the right place. Thanks
 

jj22038

Occasional Visitor
I have an rt86u that i have the latest merlin loaded. i can putty into it so ive gotten that far.
what i am trying to do is spoof the ttl number.

Here is my code that i need to enter


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/*

This was given to me and ive seen it work on another router.

Once in putty and im at the terminal how do i enter this? All at once or line by line.


i was also told to check these two boxes. i assume i check them then do the putty commands then reboot the router?
Enable JFFS custom scripts and configs
Format JFFS partition at next boot


Sorry im new to this and hope i posted in the right place. Thanks
nano is a simple text editor. The first line invokes nano on the file /jffs/scripts/nat-start. The next 5 lines you type into the nano editor. Then control-x, y, and hit return. This will write out your five lines into the file /jffs/scripts/nat-start. The chmod line allows your new file to be run.

I have no idea about whether this is a reasonable file to create, or how to run it. I'm just saying this is how to translate that text into creating the file.
 

jj22038

Occasional Visitor
After. Control-x tells nano to save the file; the Y says yes you really want to, the return says to use the suggested filename. You'll see all the prompts from nano. Then you're back at the bash prompt, where you type the chmod command.
 

ColinTaylor

Part of the Furniture
@Jmcclure85

May I ask why you're trying to do this?

The instructions you posted are old and incorrect. The script must be called firewall-start not nat-start and the sleep 10 statement is unnecessary.
 

RMerlin

Asuswrt-Merlin dev
There's a TTL spoof option on the WAN page.
 

Jmcclure85

New Around Here
@Jmcclure85

May I ask why you're trying to do this?

The instructions you posted are old and incorrect. The script must be called firewall-start not nat-start and the sleep 10 statement is unnecessary.
ok ill try this

Trying to use my tablet data in my RV hotspot so i can remotely see it, control heaters and tank heaters during the winter while im away. I was told to spoof the TTL to 65.
 
Last edited:

Jmcclure85

New Around Here
Still not having any luck, not sure when to check the two boxes. Do i check them reboot then run the putty command or. do i check them run putty command then reboot.
thanks for the help guys


Format JFFS partition at next boot
Enable JFFS custom scripts and configs
 

dave14305

Part of the Furniture
Still not having any luck, not sure when to check the two boxes. Do i check them reboot then run the putty command or. do i check them run putty command then reboot.
thanks for the help guys


Enable JFFS custom scripts and configs
Format JFFS partition at next boot
Don’t format the partition at all. It would erase the script you’re trying to create. Add your script, enable jffs custom scripts, then reboot.
 

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