making changes to files protected by SIP in Ventura

hi - im looking to make my TTL variable persistent in my sysctl.conf file in ventura. does anyone know how to do it? Heres the script im currently using that works until my computer goes into sleep or reboots.


sysctl -w net.inet.ip.ttl=100



MacBook Pro 15″, 10.15

Posted on Dec 5, 2022 9:30 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 5, 2022 10:01 AM

First of all, Stop! Why do you want to make this change? Specifically? Did you read this on the internet somewhere? Please provide a link for reference. What do you hope to accomplish with this change?


Secondly, you do not need to disable SIP to make this change. You can just put net.inet.ip.ttl=100 into /etc/sysctl.conf. You'll need root, but that's all.


PS: You can use "sudo" to gain root privileges. Please do not attempt to enable the root user.

2 replies
Question marked as Top-ranking reply

Dec 5, 2022 10:01 AM in response to ConsciousAdventureTours

First of all, Stop! Why do you want to make this change? Specifically? Did you read this on the internet somewhere? Please provide a link for reference. What do you hope to accomplish with this change?


Secondly, you do not need to disable SIP to make this change. You can just put net.inet.ip.ttl=100 into /etc/sysctl.conf. You'll need root, but that's all.


PS: You can use "sudo" to gain root privileges. Please do not attempt to enable the root user.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

making changes to files protected by SIP in Ventura

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.