Page 1 of 1

enable root telnet on MR5100

Posted: Mon Feb 28, 2022 9:23 am
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?

Re: enable root telnet on MR5100

Posted: Mon Feb 28, 2022 12:04 pm
by noise_maker
nm apparently i just needed to reboot it a second time

Re: enable root telnet on MR5100

Posted: Sun Mar 27, 2022 3:35 am
by Opticalz
What is the "code from py script" ? I need to enable root telnet in order to set ttl

Re: enable root telnet on MR5100

Posted: Wed Mar 30, 2022 5:25 pm
by Rich Hathaway
Telnet is enabled by default but ttl is difficult to set up on this device.

Re: enable root telnet on MR5100

Posted: Mon Apr 04, 2022 9:09 pm
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.

Re: enable root telnet on MR5100

Posted: Sun Apr 10, 2022 5:25 pm
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?

Re: enable root telnet on MR5100

Posted: Sun Apr 10, 2022 6:43 pm
by guest00x
Call the ttl.sh from early_init.sh using
/bin/sh /etc/init.d/ttl.sh

Re: enable root telnet on MR5100

Posted: Sun Apr 10, 2022 8:50 pm
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

Re: enable root telnet on MR5100

Posted: Mon Apr 11, 2022 1:28 pm
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).

Re: enable root telnet on MR5100

Posted: Sun Apr 21, 2024 6:10 am
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!