So I was trying to enhance my firewall to the point of inoperability and...

Situation:
Like what all really cool people do on a Saturday night, I was perusing the bowels of my unix stuff on my Mac last night, and did a sudo ipfw list. I noticed that ports 67, 68, 69, 137, 138, and 139 were open from any to any. I know that 13x ports are used for Windoze sharing, and that /etc/services shows those ports are for something to do with netbios and tftp. Windows Sharing did not show up as being enabled in SysPrefs Sharing Services, and no other services using any of these six ports showed up as being enabled in SysPrefs Sharing Firewall.
I have no idea how or why those ports would be enabled. At work, I have Macs. My sons and daughter have Macs. Nobody would be connecting to my home network, either internally or from the internet at large and doing anything windoze-like. And I never recall having ever seen this ports opened before when doing a ipfw list.
So, I got scared. I figured that I would do a sudo ipfw flush, which I did, and then just use SysPrefs Sharing Firewall to click checkboxes to reenable the services that I want. Well, that was the start of my enhancing my firewall to the point of inoperability. When I go into the SysPrefs Sharing Firewall panel, I get a splash screen that says something to the tune of "another firewall is active on this computer, so if you want to do anything here on this Firewall panel, turn off the other firewall software."
Fortunately, I had done a sudo ipfw list > portList.txt so I could at least manually sudo ipfw add back the ports that I thought I wanted (and the ports I thought I wanted denied). So that's where I'm at now. But now it's a real annoyance that I don't have "checkbox control" of services and ports through the SysPrefs Sharing Firewall panel anymore, and instead have to do the "sudo ipfw add/subtract/multiply/divide {rule#} {whatever}" thing now. I don't know how to regain control of my Apple firewall and the SysPrefs Sharing Firewall panel.
Of course this doesn't address the issue of what opened those ports, and if it happens again, an "archive and reinstall" of the OS, along with an install of fink/macports tripwire, may be in order. But that's an inconvenience to have to do, and hopefully I can avoid having to do that. In the meantime, regaining control of my Apple firewall and the SysPrefs Sharing Firewall panel, would realy be nice, and that is my question. What do I do, and how do I do it?
Thanks in advance.

First, take a deep breath...
For one, the System Preferences knows nothing about the command line ipfw changes that you made. It expects to be the interface for setting and changing firewall rules, so when you've changed them manually (ipfw flush) it sees that the current rules doesn't match what it expects and hence the error message.
Secondly, the presence, or otherwise, of those ports does not mean they are active. Just that ipfw isn't blocking them. There still has to be some process on the machine listing to the port in order for anything to actually happen. It's akin to leaving a door open - it's fine when all that's behind that door is a brick wall.
A better test is to see what's actually being used on your machine, and ipfw cannot tell you that (at least, not easily). Better tools include netstat and lsof.
netstat -a will give you a list of every network connection in use. Just don't be shocked if there are more there that you expect - the OS uses a lot of them internally. What you're most interested in is the ports in LISTEN state (piping the output through 'grep LISTEN' is a simple solution).
Now you can focus on which ports your machine will actually respond to (assuming the firewall also allows traffic through).
If you have a port number that you don't recognize then you can invoke lsof which has the ability to list all open files, network ports, etc. To track a port number, use the form:
<pre class=command>sudo lsof -i :port</pre>
This will tell you any process that is using the specified port number. From there you should be able to determine whether or not there's an issue.

Similar Messages

  • Firefox crashes all the time. Last time I was trying to ask a question on the forum for firefox and it crashed. Running Mac OS Lion

    where is the location Bar? Where is crash signature. Your photo in the click for detailed instructions does not show you where to go.

    The location Bar is where you type the address (URL) of a website that you want to visit.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes

  • I was trying to free up some memory on my hard drive and now I don't have an Itunes icon.  I may have deleted it from my applications.  How do I get it back.  I downloaded it but it says it was moved from my PDF, music is played on Quicktime player

    I was trying to free up some memory from my startup disk and I  may have accidently deleted the Itunes application.  I still  have a library if I go through finder. I can download Itunes but I'm not able to install it. All this and I still don't have enough space on my startup disk, but that's another whole question!
    If I play a tune,it comes through quicktime player.  What can I do?

    Enchanted1 wrote:
    All this and I still don't have enough space on my startup disk, but that's another whole question!
    No, this should be the number one thing you are concerned about.
    Until you get this sorted, there is a good chance you may simply lose everything.
    Do you hav ean external drive?
    If so copy the entire /Music/iTunes/ folder to the external drive.
    Then you can delete /Music/iTunes/ empty the trash and recover this space.
    Do this then Apple menu > Software update.
    Restart the computer
    Then post back.

  • Hi. I was trying to update my Itunes to the newer version but now when I try to install it, it comes up with Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services.

    Hi. I was trying to update my Itunes to the newer version but now when I try to install it, it comes up with Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services. How do I fix this?

    Hi LyfsGD!
    Here is an article that can help you troubleshoot this issue with the Apple Mobile Device Service:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • I tried to download an app on the mac app store and it continues to  say: "There was an error in the App Store. Please try again later. (null)" Please help me. Thank you.

    I tried to download an app on the mac app store and it continues to  say: "There was an error in the App Store. Please try again later. (null)" Please help me. Thank you.

    Change your Date &amp; Time settings to reflect automatic. It will fix the problem.

  • HT204266 I was trying to buy an app from the apple store, it asked for confirmation , when I re-entered my credit card details, got the message that your payment method is not valid!!!! How can I fix this problem?

    I was trying to buy an app from the apple store, it asked for confirmation , when I re-entered my credit card details, got the message that your payment method is not valid!!!! How can I fix this problem?

    Is this a pre-paid card thing? Or different billing address than your iTS account?

  • I was trying to move my photos from the iPhoto library to an external hard drive.  I now have a desktop display of thousands of cascading photos.  How do I remove them from my desktop screen?

    I was trying to move my photos from the iPhoto library to an external hard drive.  I now have a desktop display of thousands of cascading photos.  How do I remove them from my desktop screen?

    Strangely enough we can not see you so it really helps if you share with use exactly what you have, exactly what you did and details about the problem
    what version of iPhoto and of the OS? What exact steps did you do? where are you seeing these "thousands of cascading photos" now and using what software and what exactly did you want to accomplish
    The correct way to move your iphoto library to an external drive is to verify the drive is formatted Mac OS extended (journal) and then drag the iphotl library intact as a single entity to is
    The correct way to move some or all of your photos is to select them in iphoto and export 9file menu ==> export  --  https://discussions.apple.com/docs/DOC-4921 ) to the external drive
    LN

  • I recently got iphone 4 , yesterday i was trying to install an application from the itune store it say that i need to authorize it ( i already have an account and bought some apps ) how can i authorize the device ?

    i recently got iphone 4 , yesterday i was trying to install an application from the itune store it say that i need to authorize it ( i already have an account and bought some apps ) and there was a CLICK HERE BUTTON , when i press on it it take me a to a page that require some kind of activation code or smthn like that ,
    how can i authorize the device ?
    and btw i bought it from UAE store
    IOS 4.3.2

    You should only make purchases for all your devices using a single Apple ID.  There is no need, and indeed a good reason not to, set up a new Apple ID with each new device purchase.  While items purchased under different IDs can be played on a single device, you cannot merge Apple IDs and it makes it cumbersome.
    Apple IDs do not expire but may become dormant and require reactivation if they are not actively used.
    You should make note of your Apple ID and passwords and keep a record of it.  Like a bank account it contains access to items with value.  Update your Apple ID email address as they change.
    I see you were guided to this forum by a help page on recovering your password.  If that is not sufficient try the links below.  Apple will need to verify you are indeed to owner of the accounts to which you are trying to gain access.
    http://www.apple.com/support/appleid/contact/
    Contact Apple for help with Apple ID account security - http://support.apple.com/en-us/HT5699 "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues."
    Frequently asked questions about Apple ID - http://support.apple.com/kb/HE37

  • My ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    my ipod 4g was working fine until i locked the screen but when i tried to turn it back on the screen stays black and its been 3 days. Does anyone know how i could fix this?

    - Charge the iPod for half an hour.  Then reset the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - if still not working, connect to your computer. If iTunes sees the iPod, restore the iPod.
    - If still problem, place the iPod in recovery mode and then try to restore the iPod.  For recovery mod see:
    iPhone and iPod touch: Unable to update or restore

  • I just updated my iPad2 to ios7 and everything returned except my movies. Why??? I was trying to ADD a movie for my 5 year old and it said I needed a later iOS. Now he has ZERO movies!!!! Just great!!

    I just updated my iPad2 to ios7 and everything returned except my movies. Why??? I was trying to ADD a movie for my 5 year old and it said I needed a later iOS. Now he has ZERO movies!!!! Just great!! Can anyone help??

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • Was trying to upload a video through facebook then phone shutdown and wont turn on at all even if plugged

    for my iphone4 i was trying to upload a video through facebook then phone shutdown and wont turn on at all even if plugged

    Try resetting it:
    Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.

  • I've just downloaded facetime and every tie I attempt to open it I get the message"there was a problem with facetime you need to quit and reopen facetime" I've tried this but  I just get the same message again and again

    i've just downloaded facetime and every tie I attempt to open it I get the message"there was a problem with facetime you need to quit and reopen facetime" I've tried this but  I just get the same message again and again

    Hello tadom,
    Thanks for the question. The following article outlines the exact error message you described, and a potential resolution:
    OS X: "An internal FaceTime error occurred" alert after clicking Facetime icon in the Dock
    http://support.apple.com/kb/TS4457
    Thanks,
    Matt M

  • I was trying to do a backup from the iphone to my computer, i got a message that said it couldn't update and not the iphone screen is stuck on the itune symbol and the cable connection any ideas on how to clear this?  I've tried turning the iphone off ??

    I was trying to backup my iphone to the computer, I got some message that said it didn't finish an update and now the iphone is stuck.  It has the itunes symbol and the usb cable picture on the screen, any ideas as to how to clear this???

    Put your phone in Recovery Mode & restore it, as described here:
    http://support.apple.com/kb/ht1808

  • There was an error opening this document.  The file is damaged and could not be repaired.

    Good Day all
    When busy doing internet banking on www.absa.co.za and I try to print a confirmation, I get the following error message: "C:\Documents and Settings\%user profile%\Local Settings\Temporary Internet Files\Content.IE5\%folder name%\%file name%.pdf
    Could not open file.
    File not found."
    I've managed to locate the actual file that it's looking for, but when I try and open the file using either Adobe or Foxit Reader, I get the following error message: "There was an error opening this document. The file is damaged and could not be repaired."
    I've un-installed Adobe and installed version 9.1 for this particular user. This happened a while ago and then an un-installation and re-installation of Adobe solved the issue. This time, unfortunately, it didn't. I then un-installed Adobe and tried again, UNSUCCESSFULLY. So I loaded Foxit Reader, also without any success.
    If there's anyone out there who could possibly help, please do so... It's extremely urgent.
    Please find the errors attached as well.
    Regards,
    ME

    I contacted the company and they asked me to try using another browser, which I did... and using FireFox worked
    thanks for the help ʇɐb ɹəuəllıʍ
    cheers!

  • Keep getting the following error message There was an error opening this document. The file is damaged and could not be repaired.

    I keep getting the following message when trying to open a PDF I know nothing wrong with the file as it opens fine on other devices ?
    "There was an error opening this document. The file is damaged and could not be repaired."

    No its not zipped
    Brian Blackstock
    [email protected]
    Office Australia  +61 7 54537982
    Office South Africa +27 11 423 2701
    Mobile South Africa +27 796924094
    Mobile Australia +61 400797124
    www.atoll.co.za
    www.elematicsa.co.za

Maybe you are looking for