tylertreat / comcast

Simulating shitty network connections so you can build better systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comcast not working in OSX 10.10.1

dsilhavy opened this issue · comments

Hi guys,
I just tried to setup Comcast on a MAC OS X 10.10.1 machine, resulting in the following message:
"I don't support your version of OSX".
Is there a way to get it working? Maybe by changing some codelines and building it by myself?

The file throttler/throttler.go seems to be where it's at.

func osxVersionSupported() bool {
v, err := exec.Command("/bin/sh", "-c", checkOSXVersion).Output()
if err != nil {
return false
}
return !strings.HasPrefix(string(v), "10.10")
}

@th3m4ri0 beat me to it.
Try changing line 107 in throttler.g

The utility Comcast uses as a backend for OSX (ipfw) was removed in 10.10 Yosemite. It should be theoretically possible to implement a backend which uses pfctl that would support Yosemite, but learning it looks a little more involved.

^ Basically this. Blame Apple. But I'm working toward supporting it eventually after I finish tc/iptables & ipfw overhaul. Will be hard without a Mac to test it on, but I have people that can do it for me :3

Allright thank you for the fast response guys. I might try it on a Linux VM some time ;)

Yeah, I would say the "preferred" use case is on Linux for the time being, but it sounds like @term1nal is working on some interesting stuff, so stay tuned.