How to change the default TTL

How to change the default TTL of TCP/IP packets.

for Windows Server(To make reg-file:):

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servic es\Tcpip\Parameters]
"DefaultTTL"=dword:00000081

for Linux:

# sysctl net.ipv4.ip_default_ttl=129
or
echo 129 | sudo tee /proc/sys/net/ipv4/ip_default_ttl

To make this setting persistent across reboots you could append the following line to the file /etc/sysctl.conf:

net.ipv4.ip_default_ttl=129