News for hackers. Stuff that matters.
Re:Using iptables to balance Node.js by chopsueyar on Monday August 15, 2011 @11:09AM (#2887196)
Is it fairly common to forward port 80 to some higher level port, so the server can run as a non-root user?

I do it out of necessity, but have yet to play with the statistics portion of iptables.

Cool little article.

Re:Using iptables to balance Node.js by jvoorhis on Monday August 15, 2011 @11:47AM (#2887354)
I've used this trick to forward to a Twisted Conch daemon running as a non-root user. However, I would never consider this approach for load balancing.
Re:Using iptables to balance Node.js by sparrish on Monday August 15, 2011 @12:04PM (#2887432)
Why would you never consider it for load balancing?
Re:Using iptables to balance Node.js by adamtulinius on Monday August 15, 2011 @12:12PM (#2887469)
Because first of all it's just a variation of round-robin, which doesn't take into account that different requests will take varying amounts of time.

Secondly, you can't (in an easy way) remove or add to the pool of backends.

I'm confident others will come up with more not-so-compelling reasons for using iptables for load balancing.

Re:Using iptables to balance Node.js by adamtulinius on Monday August 15, 2011 @11:51AM (#2887374)
It's probably more common to start a service as root, bind to a port, and drop privileges.