M
M
mr-zherart2014-09-10 01:01:30
macOS
mr-zherart, 2014-09-10 01:01:30

How to set TTL=129 on Mac OS X?

The question is very non-standard. The provider blocks routers, and as a workaround, you can set the packet lifetime to one more than the default, that is, 129. On windows, this is done simply by changing the value in the registry, but how on a MacBook? Many thanks to those in the know!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mr-zherart, 2014-09-19
@mr-zherart

I found the answer myself. Read the very first post.

V
Va1ery, 2014-11-23
@Va1ery

Mac OS 10.10
sudo sysctl -w net.inet.ip.ttl=65
makes changes, but the ttl doesn't really change, everything worked before the update. Tried restarting interfaces.
You reboot the system and it crashes to 64, before it seemed to me that on poppy sysctl changes ttl all the time, at least on android and debian it’s definitely permanent, and if you write to /proc until reboot.
#update
Found a solution, sysctl really works until the reboot to achieve a constant value:
1. Create the file /etc/sysctl.conf
2. Add the line
net.inet.ip.ttl=65 to it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question