how to make sysctl changes on startup?

I need to change tcp keepalive values because of my ISP's router. The sysctl -w command works fine but is not saved on restart.

tia,

Barry

Mac Mini, Mac OS X (10.4.10)

Posted on Sep 27, 2007 9:38 PM

Reply
6 replies

Sep 28, 2007 10:21 AM in response to Barry Schiffman

Create a file named sysctl.conf in your local /etc folder
This needs again to be done as root!
Go to the command line, become root and fire up your preferred editor (vi) by typing vi /etc/sysctl.conf

Put the following into the newly created file, (shown for example only, but where your keepalive goes),

net.inet.tcp.delayed_ack=0
net.inet.tcp.mssdflt=1460
net.inet.tcp.newreno=1

and save the file. The file rights must be set to: owner root:wheel and -rw-r--r-- please make sure by typing ls -al /etc/sysctl.conf on the command line and if not change it by running chown root:wheel /etc/sysctl.conf and chmod 0644 /etc/sysctl.conf from the command line.

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.

how to make sysctl changes on startup?

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