enable root telnet on MR5100

Topics for Netgear Nighthawks MRxxxx Series Hotspots
Post Reply
noise_maker
Posts: 13
Joined: Mon Feb 21, 2022 9:54 am
Has thanked: 3 times
Been thanked: 1 time

enable root telnet on MR5100

Post by noise_maker »

I have been trying to enable root telnet on an mr5100.

These are the commands I have been trying. They are all accepted but telnet on port 23 still does not work regardless if i test it over USB or ethernet

Code: Select all

AT!OPENLOCK?
AT!OPENLOCK="code from py script"
AT!SETCND="mypw" 
AT!TELEN=1 - enable telnet 
AT!CUSTOM="RDENABLE", 1

Is there an additional steps for the MR5100?
noise_maker
Posts: 13
Joined: Mon Feb 21, 2022 9:54 am
Has thanked: 3 times
Been thanked: 1 time

Re: enable root telnet on MR5100

Post by noise_maker »

nm apparently i just needed to reboot it a second time
Opticalz
Posts: 2
Joined: Sat Mar 26, 2022 7:42 pm
Has thanked: 0
Been thanked: 0

Re: enable root telnet on MR5100

Post by Opticalz »

What is the "code from py script" ? I need to enable root telnet in order to set ttl
User avatar
Rich Hathaway
Posts: 609
Joined: Mon Mar 08, 2021 2:41 pm
Has thanked: 12 times
Been thanked: 210 times

Re: enable root telnet on MR5100

Post by Rich Hathaway »

Telnet is enabled by default but ttl is difficult to set up on this device.
parkercs
Posts: 7
Joined: Wed Mar 09, 2022 10:00 am
Has thanked: 0
Been thanked: 2 times
Contact:

Re: enable root telnet on MR5100

Post by parkercs »

Rich Hathaway wrote: Wed Mar 30, 2022 5:25 pm Telnet is enabled by default but ttl is difficult to set up on this device.
After enabling telnet with the root shell, enabling TTL was simple with these commands:

Code: Select all

echo "iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 64" > /etc/init.d/ttl.sh
echo "ip6tables -t mangle -I POSTROUTING -o rmnet_data0 -j HL --hl-set 64" >> /etc/init.d/ttl.sh
chmod 755 /etc/init.d/ttl.sh
ln -s /etc/init.d/ttl.sh /etc/rc5.d/S98ttl
Opticalz wrote: Sun Mar 27, 2022 3:35 am What is the "code from py script" ? I need to enable root telnet in order to set ttl
Refers to the sierrakeygen.py script, which can be found at this link: https://replit.com/repls/TreasuredTornRouter.
darkembr
Posts: 3
Joined: Sun Apr 10, 2022 5:21 pm
Has thanked: 0
Been thanked: 1 time

Re: enable root telnet on MR5100

Post by darkembr »

parkercs wrote: Mon Apr 04, 2022 9:09 pm After enabling telnet with the root shell, enabling TTL was simple with these commands:

Code: Select all

echo "iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 64" > /etc/init.d/ttl.sh
echo "ip6tables -t mangle -I POSTROUTING -o rmnet_data0 -j HL --hl-set 64" >> /etc/init.d/ttl.sh
chmod 755 /etc/init.d/ttl.sh
ln -s /etc/init.d/ttl.sh /etc/rc5.d/S98ttl
I tried this and it doesn't set the commands after reboot. On the MR1100 you can add a line to /etc/init.d/rmnologin.sh and it will do it on boot, but that file doesn't exist and it hasn't worked on any of the files I've tried (so far /etc/init/late_init.sh as well as /etc/init.d/varrw.sh)

Any ideas?
guest00x
Posts: 9
Joined: Fri Apr 01, 2022 5:02 pm
Has thanked: 0
Been thanked: 1 time

Re: enable root telnet on MR5100

Post by guest00x »

Call the ttl.sh from early_init.sh using
/bin/sh /etc/init.d/ttl.sh
darkembr
Posts: 3
Joined: Sun Apr 10, 2022 5:21 pm
Has thanked: 0
Been thanked: 1 time

Re: enable root telnet on MR5100

Post by darkembr »

darkembr wrote: Sun Apr 10, 2022 5:25 pm
parkercs wrote: Mon Apr 04, 2022 9:09 pm After enabling telnet with the root shell, enabling TTL was simple with these commands:

Code: Select all

echo "iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 64" > /etc/init.d/ttl.sh
echo "ip6tables -t mangle -I POSTROUTING -o rmnet_data0 -j HL --hl-set 64" >> /etc/init.d/ttl.sh
chmod 755 /etc/init.d/ttl.sh
ln -s /etc/init.d/ttl.sh /etc/rc5.d/S98ttl
I tried this and it doesn't set the commands after reboot. On the MR1100 you can add a line to /etc/init.d/rmnologin.sh and it will do it on boot, but that file doesn't exist and it hasn't worked on any of the files I've tried (so far /etc/init/late_init.sh as well as /etc/init.d/varrw.sh)

Any ideas?
Update, tried a few more things and was able to get it to work after boot using /etc/init/early_init.sh using the following at the end after the final lines in the default:

Code: Select all

#TTL modification
sleep 0.5
sh /etc/init.d/ttl.sh
Once I test it with the SIM and check the data report I’ll report back
darkembr
Posts: 3
Joined: Sun Apr 10, 2022 5:21 pm
Has thanked: 0
Been thanked: 1 time

Re: enable root telnet on MR5100

Post by darkembr »

Was able to test with T-Mobile and it works perfectly fine. I did have to factory reset due to a glitched web panel but it persisted after reset (imei didn’t but that is easy).
Kyle23u
Posts: 2
Joined: Tue May 26, 2020 2:26 pm
Has thanked: 1 time
Been thanked: 0

Re: enable root telnet on MR5100

Post by Kyle23u »

"Refers to the sierrakeygen.py script, which can be found at this link: https://replit.com/repls/TreasuredTornRouter."

Does anyone have the script for this link that is no longer available? I am trying to change ttl
I am also trying to follow this guide https://parkercs.tech/netgear-mr1100-hotspot/ but cant get the script.

-thank you!
Post Reply

Return to “Nighthawks MR1100 - MR5200 (M1...M5...)”