How to open a specific port in Moutain Lion Firewall












0














I cant seem to find how to open a specific port in the ML firewall? I know you can give applications permisiion, but thats no good to me. Is there a way I can specify a specific port?










share|improve this question




















  • 2




    Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
    – Gordon Davisson
    Sep 7 '12 at 16:22










  • I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
    – cyphorious
    Aug 29 '13 at 14:32
















0














I cant seem to find how to open a specific port in the ML firewall? I know you can give applications permisiion, but thats no good to me. Is there a way I can specify a specific port?










share|improve this question




















  • 2




    Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
    – Gordon Davisson
    Sep 7 '12 at 16:22










  • I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
    – cyphorious
    Aug 29 '13 at 14:32














0












0








0


1





I cant seem to find how to open a specific port in the ML firewall? I know you can give applications permisiion, but thats no good to me. Is there a way I can specify a specific port?










share|improve this question















I cant seem to find how to open a specific port in the ML firewall? I know you can give applications permisiion, but thats no good to me. Is there a way I can specify a specific port?







macos firewall






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 13 '16 at 8:33









Hennes

58.8k792141




58.8k792141










asked Sep 7 '12 at 13:40









geminiCoder

1271213




1271213








  • 2




    Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
    – Gordon Davisson
    Sep 7 '12 at 16:22










  • I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
    – cyphorious
    Aug 29 '13 at 14:32














  • 2




    Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
    – Gordon Davisson
    Sep 7 '12 at 16:22










  • I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
    – cyphorious
    Aug 29 '13 at 14:32








2




2




Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
– Gordon Davisson
Sep 7 '12 at 16:22




Can you explain what you're trying to achieve, and why allowing an application permissions doesn't solve it? If you don't have a program listening on that port, opening it in the firewall doesn't do any good; if you do have a program listening, just allow that program in the firewall.
– Gordon Davisson
Sep 7 '12 at 16:22












I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
– cyphorious
Aug 29 '13 at 14:32




I know it's an old question. Nonetheless I don't understand the downvote. The Op clearly asked what he was trying to achive: opening a port on the internal firewall. There are many reasons for this without the need of a specific application.
– cyphorious
Aug 29 '13 at 14:32










2 Answers
2






active

oldest

votes


















0














This explains how to open a port by using the terminal. Otherwise you will need to download a program such as IceFloor or WaterRoof if you want a GUI.






share|improve this answer



















  • 1




    That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
    – Gordon Davisson
    Sep 7 '12 at 16:20



















0














There are two firewalls. The application firewall, and network layer firewall. The network firewall can be interacted with ipfw like this:



sudo ipfw list
sudo ipfw add [rule number] allow tcp from any to any dst-port [port]


You can interact with the application level firewall like this:




  1. Open System Preferences.

  2. Click the Security or Security & Privacy icon.

  3. Select the Firewall tab.

  4. Click the lock icon in the preference pane, then enter an administrator name and password.

  5. Click the Firewall Options button

  6. Click the Add Application (+) button. Select the app you want to allow incoming connection privileges for.

  7. Click Add.

  8. Click OK.


https://support.apple.com/en-ca/HT201642



Enjoy.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f471276%2fhow-to-open-a-specific-port-in-moutain-lion-firewall%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This explains how to open a port by using the terminal. Otherwise you will need to download a program such as IceFloor or WaterRoof if you want a GUI.






    share|improve this answer



















    • 1




      That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
      – Gordon Davisson
      Sep 7 '12 at 16:20
















    0














    This explains how to open a port by using the terminal. Otherwise you will need to download a program such as IceFloor or WaterRoof if you want a GUI.






    share|improve this answer



















    • 1




      That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
      – Gordon Davisson
      Sep 7 '12 at 16:20














    0












    0








    0






    This explains how to open a port by using the terminal. Otherwise you will need to download a program such as IceFloor or WaterRoof if you want a GUI.






    share|improve this answer














    This explains how to open a port by using the terminal. Otherwise you will need to download a program such as IceFloor or WaterRoof if you want a GUI.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 13 '17 at 12:45









    Community

    1




    1










    answered Sep 7 '12 at 13:51









    user142485

    1,66511115




    1,66511115








    • 1




      That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
      – Gordon Davisson
      Sep 7 '12 at 16:20














    • 1




      That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
      – Gordon Davisson
      Sep 7 '12 at 16:20








    1




    1




    That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
    – Gordon Davisson
    Sep 7 '12 at 16:20




    That opens a port in the ipfw firewall, which is already wide open by default. In order to do anything useful, you have to be dealing with the application firewall (alf aka socketfilterfw aka a bunch of other names).
    – Gordon Davisson
    Sep 7 '12 at 16:20













    0














    There are two firewalls. The application firewall, and network layer firewall. The network firewall can be interacted with ipfw like this:



    sudo ipfw list
    sudo ipfw add [rule number] allow tcp from any to any dst-port [port]


    You can interact with the application level firewall like this:




    1. Open System Preferences.

    2. Click the Security or Security & Privacy icon.

    3. Select the Firewall tab.

    4. Click the lock icon in the preference pane, then enter an administrator name and password.

    5. Click the Firewall Options button

    6. Click the Add Application (+) button. Select the app you want to allow incoming connection privileges for.

    7. Click Add.

    8. Click OK.


    https://support.apple.com/en-ca/HT201642



    Enjoy.






    share|improve this answer


























      0














      There are two firewalls. The application firewall, and network layer firewall. The network firewall can be interacted with ipfw like this:



      sudo ipfw list
      sudo ipfw add [rule number] allow tcp from any to any dst-port [port]


      You can interact with the application level firewall like this:




      1. Open System Preferences.

      2. Click the Security or Security & Privacy icon.

      3. Select the Firewall tab.

      4. Click the lock icon in the preference pane, then enter an administrator name and password.

      5. Click the Firewall Options button

      6. Click the Add Application (+) button. Select the app you want to allow incoming connection privileges for.

      7. Click Add.

      8. Click OK.


      https://support.apple.com/en-ca/HT201642



      Enjoy.






      share|improve this answer
























        0












        0








        0






        There are two firewalls. The application firewall, and network layer firewall. The network firewall can be interacted with ipfw like this:



        sudo ipfw list
        sudo ipfw add [rule number] allow tcp from any to any dst-port [port]


        You can interact with the application level firewall like this:




        1. Open System Preferences.

        2. Click the Security or Security & Privacy icon.

        3. Select the Firewall tab.

        4. Click the lock icon in the preference pane, then enter an administrator name and password.

        5. Click the Firewall Options button

        6. Click the Add Application (+) button. Select the app you want to allow incoming connection privileges for.

        7. Click Add.

        8. Click OK.


        https://support.apple.com/en-ca/HT201642



        Enjoy.






        share|improve this answer












        There are two firewalls. The application firewall, and network layer firewall. The network firewall can be interacted with ipfw like this:



        sudo ipfw list
        sudo ipfw add [rule number] allow tcp from any to any dst-port [port]


        You can interact with the application level firewall like this:




        1. Open System Preferences.

        2. Click the Security or Security & Privacy icon.

        3. Select the Firewall tab.

        4. Click the lock icon in the preference pane, then enter an administrator name and password.

        5. Click the Firewall Options button

        6. Click the Add Application (+) button. Select the app you want to allow incoming connection privileges for.

        7. Click Add.

        8. Click OK.


        https://support.apple.com/en-ca/HT201642



        Enjoy.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 24 '15 at 18:58









        Alex Atkinson

        2,715913




        2,715913






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f471276%2fhow-to-open-a-specific-port-in-moutain-lion-firewall%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            Origin of the phrase “under your belt”?