Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7012553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:16:16+00:00 2026-05-27T22:16:16+00:00

I’m struggling to get my nginx server reachable from outside with the OS X

  • 0

I’m struggling to get my nginx server reachable from outside with the OS X (Mac OS X Snow Leopard) firewall turned on. I’m stuck, I don’t know what to tweak more.

I’m able to access my page through 127.0.0.1 with firewall on and from another computer with firewall off. I can’t access from outside with firewall on, I’ve tried to put an exception on the firewall for the nginx app and it’s there, “allowing connections from outside”, but it’s not working, I’ve also tried to enable websharing, which in truth just starts an internal apache, but it doesn’t helped with the nginx server.

Also, I’m able to access this bundled apache from outside by turning off the nginx! but I’m not able to access MY custom web server.

I’ve seen in some forums that the OS X firewall works by allowing signed apps, and adding exceptions by signing an app… something like that.
The problem is that adding nginx as an exception to the firewall is not working.

Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:16:16+00:00Added an answer on May 27, 2026 at 10:16 pm

    I had the same problem and found no fix, but I was able to implement a workaround through ipfw:

    First you have nginx to listen to another port. I added 10080 and 10443 as additional ports:

    server {
        listen       80 default_server;
        listen       10080 default_server;
        listen       443 default_server ssl;                                                                                                                          
        listen       10443 default_server ssl;
    
        ...
    }
    

    I left to default ports (80 and 443) for access from the local machine (localhost).

    After that I added 2 forwarding rules through ipfw:

    fwd 127.0.0.1,10080 tcp from any to me dst-port 80
    fwd 127.0.0.1,10443 tcp from any to me dst-port 443
    

    The easiest way to do this is through WaterRoof. Additionally you have to enable ip-forwarding in the kernel:

    sudo sysctl -w net.inet.ip.forwarding=1
    

    To make this permanent, you can add the following to /etc/sysctl.conf:

    net.inet.ip.forwarding=1
    

    Now all traffic from the outside gets forwarded to the new ports nginx is listening to and you should be able to access it from other machines.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I don't have much knowledge about the IPv6 protocol, so sorry if the question
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I have a view passing on information from a database: def serve_article(request, id): served_article

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.