basecamp / pow

Zero-configuration Rack server for Mac OS X
http://pow.cx/
MIT License
3.41k stars 259 forks source link

Pow breaks when used with Network Link Conditioner #482

Open klaaspieter opened 9 years ago

klaaspieter commented 9 years ago

.dev domains fail to load when the Network Link Conditioner is turned on in OS X Mavericks.

This is the error in Chrome: image

So far the only solution I've found is a full restart. There doesn't appear to be anything happening in the logs. Everything silently fails the moment the Network Link Conditioner is turned on.

ryankshaw commented 9 years ago

+1

yachi commented 9 years ago

+1

devnacho commented 9 years ago

+1

jlanatta commented 9 years ago

+1

iliu commented 9 years ago

+1

davidlamarwheeler commented 9 years ago

+1

rstrand commented 9 years ago

+1

nathanhamilton commented 9 years ago

+1

frenkelor commented 8 years ago

+1

Nuru commented 8 years ago

Pow (0.5.0) remains broken, even after turning off Network Link Conditioner and restarting Pow. It seems clear that the Network Link Conditioner operates in part by altering pf rules to push traffic through dummynet, and in doing so breaks Pow's rule redirecting port 80. What's worse, when the Network Link Conditioner is turned off, it does not fully restore pf to its previous state. I hope people who read this and have some influence at Apple will get on them to fix this.

Meanwhile, as a workaround, you can at least restore pow to working order after turning off the Network Link Conditioner by resetting pf with

sudo pfctl -f /etc/pf.conf

Note that if you do this while the Network Link Conditioner is active, you will bypass the Network Link Conditioner without any indication in the UI and then when you turn it off via the UI, it will break pf again and you will have to reset pf again.

Overall, you may have better luck with using the link conditioning built into the Google Chrome browser dev tools or in the iOS developer tools on real Apple iOS devices.

nathanhamilton commented 8 years ago

Thanks @Nuru. That is very helpful to know.

avetisk commented 8 years ago

+1