<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Get on Michael’s Domain</title><link>https://jeltsch.org/en/tags/get/</link><description>Recent content in Get on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/get/index.xml" rel="self" type="application/rss+xml"/><item><title>A permanent static route for Macintosh OS X (10.4.7)</title><link>https://jeltsch.org/en/permanent_route_osx/</link><pubDate>Sun, 10 Sep 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/permanent_route_osx/</guid><description>&lt;p&gt;I have set up OpenVPN on our pribvate network, but our special setup requires manually adding a static entry to the routing table of computers that we want to access from the outside via our VPN server. In SuSE Linux this is a nobrainer as Yast provides a section where to add static routing information. On MacOS X the command line works, but upon reboot the route is lost:&lt;code&gt;route add 10.8.0.0/24 192.168.0.2&lt;/code&gt;Check what the route is for a specific IP:&lt;code&gt;route get 10.8.0.1&lt;/code&gt;The same command has a different syntax on Linux though:&lt;code&gt;route add -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.2&lt;/code&gt;In order to preserve the routing information over a reboot I created the folder AddRoutes in /Library/StartupItems. Inside this folder there have to be two files: AddRoutes and StartupParameters.plist . The content of these files is the following:AddRoutes:&lt;code&gt;#!/bin/sh# Set up static routing tables. /etc/rc.commonStartService (){ ConsoleMessage &amp;quot;Adding Static Routing Tables&amp;quot; route add -net 10.8.0.0/24 192.168.0.2}StopService (){ return 0}RestartService (){ return 0}RunService &amp;quot;$1&amp;quot;&lt;/code&gt;StartupParameters.plist:&lt;code&gt;{ Description = &amp;quot;Add static routing tables&amp;quot;; Provides = (&amp;quot;AddRoutes&amp;quot;); Requires = (&amp;quot;Network&amp;quot;); OrderPreference = &amp;quot;None&amp;quot;;}&lt;/code&gt;These files need to be readable and executable by everybody for MacOS X 10.4.7. However, MacOSX might wipe these files with each system upgrade (at least from Mountain Lion to Mavericks my settings disappeared completely). After recreating them, I got the error message &amp;ldquo;Insecure Startup Item disabled&amp;rdquo; at boot and I needed to give the directory and the files the following permissions to make the error to disappear:&lt;code&gt;drwxr-xr-x 4 root wheel 136 Aug 6 22:44 AddRoutes``-rwxr-xr-x 1 root wheel 238 Aug 6 22:43 AddRoutes-rwxr-xr-x 1 root wheel 123 Aug 6 22:44 StartupParameters.plist&lt;/code&gt;However, the route does not get added in Mavericks by this procedure and I could not find any information how to do this.The original information is from the following website: 
 &lt;a href="http://macosx.com/forums/showthread.php?t=267209" target="_blank" rel="noopener noreferrer nofollow"&gt;http://macosx.com/forums/showthread.php?t=267209&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
.&lt;/p&gt;</description></item></channel></rss>