Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix scoped routing setup. #6

wants to merge 1 commit into from

2 participants


This fixes #2.

The current script was installing bad flags in the kernel’s boot.plist. This does it the right way, and if you run twice, it won’t tell you to reboot again (you only need to once per kernel flag change, ever).


CBowns - thanks for this. Question for you. What version of node and os x are you using here?


I’m not a node user, actually, I was just kicking this fix into shim to help out others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 12, 2012
  1. @cbowns
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 4 deletions.
  1. +13 −4
@@ -14,10 +14,19 @@ sudo cp /etc/sysctl.conf __sysctl.conf
sudo cat _sysctl.conf>>__sysctl.conf
sudo cp __sysctl.conf /etc/sysctl.conf
- echo '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC \
- "-//Apple//DTD PLIST 1.0//EN" ""><plist \
- version="1.0"><dict><key>Kernel \
- Flags</key><string>net.inet.ip.scopedroute=0</string></dict></plist>' > /Library/Preferences/SystemConfiguration/
+currentflags=`sudo defaults read /Library/Preferences/SystemConfiguration/ "Kernel Flags"`
+echo $currentflags
+if [[ "$currentflags" == "$kernelflags" ]]; then
+ echo "You're already set for scoped routing."
+ sudo defaults write /Library/Preferences/SystemConfiguration/ "Kernel Flags" $kernelflags
+ echo "To use shim, you'll need to reboot just this once for the kernel flags change to take effect."
+sudo plutil -convert xml1 /Library/Preferences/SystemConfiguration/
Something went wrong with that request. Please try again.