AutoStart Command TTL

  • Hello Community,
    Could someone help me program a command line. I access SSH with my post and I want to modify the TTL of Librelec to change it to 65 (it is 64 by default)

    I saw that on Linux you have to type the command sysctl net.ipv4.ip_default_ttl = 65

    Except that at each restart it returns to 64

    I tried to modify sysctl.conf it does not work (cannot write the file) and I tried to integrate a line on autostart.sh (net.ipv4.ip_default_ttl = 65) but on restart I stay in 64. Can you please help me to make the TTL change to automatic on startup?

    Thank you !

    Edited once, last by izno69 (February 26, 2020 at 12:59 PM).

  • Hi,

    I copy the line: echo "net.ipv4.ip_default_ttl = 65" > /storage/.config/sysctl.d/net.conf

    in nano /storage/.config/autostart.sh

    but is not working after the reboot... the TTL is 64 not 65 when i asked that in the putty console with the command:

    cat /proc/sys/net/ipv4/ip_default_ttl

    The result is 64 :(

    Any other ideas ?

    Thx