Commit 410b9d42 authored by Avery Pennarun's avatar Avery Pennarun

Magic incantation to mostly fix MacOS 10.6.

It comes down to this:
   sysctl_set('net.inet.ip.scopedroute', 0)

I say "mostly" because actually it doesn't fix it; sshuttle doesn't know
what to do with the received connection, so there must be a minor bug
remaining somewhere.  I'll fix that next.

Thanks to dkf <dfortunato@gmail.com> on the sshuttle mailing list for
suggesting the magic fix.  He points at this post in particular:
  http://discussions.apple.com/thread.jspa?messageID=11558355&#11558355
that gave him the necessary clue.
parent 2ef1c6a4
...@@ -125,6 +125,7 @@ def do_ipfw(port, subnets): ...@@ -125,6 +125,7 @@ def do_ipfw(port, subnets):
if subnets: if subnets:
sysctl_set('net.inet.ip.fw.enable', 1) sysctl_set('net.inet.ip.fw.enable', 1)
sysctl_set('net.inet.ip.forwarding', 1) sysctl_set('net.inet.ip.forwarding', 1)
sysctl_set('net.inet.ip.scopedroute', 0)
ipfw('add', sport, 'accept', 'ip', ipfw('add', sport, 'accept', 'ip',
'from', 'any', 'to', 'any', 'established') 'from', 'any', 'to', 'any', 'established')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment