How do I block requests to Apache on a network interface?

Posted by Dmitry Dulepov on Server Fault See other posts from Server Fault or by Dmitry Dulepov
Published on 2012-09-10T09:01:27Z Indexed on 2012/09/10 9:39 UTC
Read the original article Hit count: 174

Filed under:
|

The problem: I have a local Apache instance on my Macbook Pro. I need it to listen on all network interfaces except en0 and en1 (basically, listen on lo and vnicX from Parallels).

I know about "Listen *:80" but this is not a solution in this particular case. The only thing I could imagine if to use OS X firewall to block incoming requests to Apache on those interfaces. But I could not find any working examples and could not make such rules myself.

Could somebody help, please?

© Server Fault or respective owner

Related posts about apache2

Related posts about macosx