Comments (12)
Wo, thanks for the heads up!
On 12.06.2014, at 04:41, Mathieu Allaire [email protected] wrote:
Might be interesting to follow what come up here: basecamp/pow#452
ipfw is removed from yosemite, so we might have to backport some of the suff in pow again!
—
Reply to this email directly or view it on GitHub.
from local-tld.
Maybe just use pow's port proxy feature and call it a day for local-tld
?
http://pow.cx/manual.html#section_2.1.4
# http://myapp.dev
$ echo 8000 > ~/.pow/myapp
from local-tld.
@brandonblack I love pow, but the reason for me to have local-tld is a pure Node solution, as that makes the installation story for our users a lot simpler. Not saying pow or Ruby are particularly difficult, it’s just another thing that has different conventions and all that, hence my “clone” :)
from local-tld.
Here are quick steps to get local-tld working in Yosemite. I don't have time right now to make fix but needed this working asap, so had to tinker around. Hope this saves some time from someone else.
/etc/pf.anchors/local.dev
rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port = 80 -> 127.0.0.1 port 5999
/etc/pf.conf
After rdr-anchor "com.apple" add
rdr-anchor "local.dev"
Bottom of the file add
load anchor "local.dev" from "/etc/pf.anchors/local.dev"
Restart PF
sudo pfctl -f /etc/pf.conf
sudo pfctl -e
from local-tld.
This worked to get local-tld working for me, however is it normal to get these warnings?
$ sudo pfctl -f /etc/pf.conf
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf for further details.
No ALTQ support in kernel
ALTQ related functions disabled
$ sudo pfctl -e
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
from local-tld.
As far as I know, these are completely normal. It just informs that some pf functions are unavailable under OS X kernel. However, we don't even need those functions, so you can safely ignore the warnings.
from local-tld.
Perfect. Thanks.
from local-tld.
Thanks for the workaround @tv, but every time I restart my system I need to enter both sudo pfctl -f /etc/pf.conf
and sudo pfctl -e
again. Is there some way to avoid that?
from local-tld.
You will need to create LaunchDaemon to handle pf startup at launch time. I rarely restart my system, so didn't bother to create this. Check local-tld-firewall.plist for reference.
from local-tld.
@tv Thanks!
from local-tld.
Thx for this!
from local-tld.
This doesn't seem to fix it on Yosemite for me, I still had to do the manual workaround.
from local-tld.
Related Issues (20)
- Local-TLD blocks vhost resolution HOT 26
- virtual machines can’t connect to host’s apache.
- add local-tld enable / disable convenience commands
- local-tld-service repo doesn't exist HOT 1
- installing local-tld via npm as sudo gives errors HOT 71
- Windows support HOT 24
- doesn't seem to work when wifi is disabled? HOT 14
- ~/Library/LaunchDaemons or /Library/LaunchAgents might not exist HOT 2
- Support custom `node` install locations HOT 1
- /etc/hosts HOT 5
- ERR! weird error 126 HOT 1
- LaunchDaemon not starting HOT 2
- A workflow to serve static files HOT 1
- Publish 4.0 to npm? HOT 3
- support for multiple apps on the same domain HOT 1
- sudo: incorrect password attempts HOT 4
- Connection refused HOT 4
- gulp-connect + local-tld HOT 1
- no longer supported?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-tld.