Firewall doesn't load ipfw.conf

This is a repost in the 10.5 forum; it was posted in the 10.4 forum by mistake as http://discussions.apple.com/thread.jspa?messageID=6834128
PROBLEMS:
1. Unable to forward port 80 to port 8080 using Apple's Firewall in Server Admin (Firewall => Settings => Advanced). I want to forward port 80 (and 443) so that I can run Tomcat 6 standalone as a non-privileged user).
2. Apple's firewall documentation states that rules in /etc/ipfilter/ipfw.conf will be loaded after /etc/ipfilter/ipfw.conf.apple is loaded, but upon reboot this does not happen. It does work if Server Admin is used to modify the Firewall rules after booting.
This is /etc/ipfilter/ipfw.conf.apple -- all standard rules as shipped by Apple except for rule 1010 which should forward port 80 to port 8080. It does not work. However, adding rule 1010 as any rule number < 1000 and it does work (but this can't be done using ServerAdmin; it must be done manually).
00001 1 74 allow udp from any 626 to any dst-port 626
01000 2348 573022 allow ip from any to any via lo0
*01010 0 0 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in*
01020 0 0 deny ip from any to 127.0.0.0/8 in
01030 0 0 deny ip from 224.0.0.0/4 to any in in
01040 0 0 deny tcp from any to 224.0.0.0/4 in in
12300 69595 10045552 allow tcp from any to any established
12301 2 128 allow tcp from any to any out
12302 0 0 allow tcp from any to any dst-port 22
12302 0 0 allow udp from any to any dst-port 22
12303 16 1144 allow udp from any to any out keep-state
12304 0 0 allow tcp from any to any dst-port 53 out keep-state
12304 0 0 allow udp from any to any dst-port 53 out keep-state
12305 0 0 allow udp from any to any in frag
12306 0 0 allow tcp from any to any dst-port 311
12307 0 0 allow tcp from any to any dst-port 625
12308 0 0 allow udp from any to any dst-port 626
12309 0 0 allow icmp from any to any icmptypes 8
12310 0 0 allow icmp from any to any icmptypes 0
12311 0 0 allow igmp from any to any
12312 0 0 allow tcp from any to any dst-port 80
12313 0 0 allow tcp from any to any dst-port 8080
12314 0 0 allow tcp from any to any dst-port 9006,8080,8443
12315 0 0 allow tcp from any to any dst-port 443
65534 20 1556 deny ip from any to any
65535 0 0 allow ip from any to any
The above rule 1010 does NOT work; no forwarding occurs. However, applying the exact same rule on the command line works perfectly:
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in
After the above line is executed, port forwarding works great:
00001 1 74 allow udp from any 626 to any dst-port 626
00100 84 8975 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in
01000 3629 1853499 allow ip from any to any via lo0
01010 0 0 fwd 127.0.0.1,8080 tcp from any to any dst-port 80 in
01020 0 0 deny ip from any to 127.0.0.0/8 in
01030 0 0 deny ip from 224.0.0.0/4 to any in in
01040 0 0 deny tcp from any to 224.0.0.0/4 in in
12300 78059 11439073 allow tcp from any to any established
12301 5 320 allow tcp from any to any out
12302 0 0 allow tcp from any to any dst-port 22
12302 0 0 allow udp from any to any dst-port 22
12303 27 2304 allow udp from any to any out keep-state
12304 0 0 allow tcp from any to any dst-port 53 out keep-state
12304 0 0 allow udp from any to any dst-port 53 out keep-state
12305 0 0 allow udp from any to any in frag
12306 0 0 allow tcp from any to any dst-port 311
12307 0 0 allow tcp from any to any dst-port 625
12308 0 0 allow udp from any to any dst-port 626
12309 0 0 allow icmp from any to any icmptypes 8
12310 0 0 allow icmp from any to any icmptypes 0
12311 0 0 allow igmp from any to any
12312 0 0 allow tcp from any to any dst-port 80
12313 0 0 allow tcp from any to any dst-port 8080
12314 0 0 allow tcp from any to any dst-port 9006,8080,8443
12315 0 0 allow tcp from any to any dst-port 443
65534 29 2270 deny ip from any to any
65535 0 0 allow ip from any to any
Of course, rule #100 added via "sudo ipfw..." disappears upon reboot. So I tried adding it to /etc/ipfilter/ipfw.conf because Apple's comments in /etc/ipfilter/ipfw.conf.default state:
+# Administrators can place custom ipfw rules in ipfw.conf.+
+# Whenever a change is made to the ipfw rules by the Server Admin application and saved:+
+# 1. All ipfw rules are flushed+
+# 2. The rules defined by the Server Admin app (stored as plists) are exported to+
+# /etc/ipfilter/ipfw.conf.apple and loaded into the firewall via ipfw.+
+# 3. The rules in /etc/ipfilter/ipfw.conf are loaded into the firewall via ipfw.+
+# Note that the rules loaded into the firewall are not applied unless the firewall is enabled.+
But this is not true--upon reboot the rules are not loaded as seen by 'ipfw show'. However, making a change in the Server Admin GUI does add the rules in ipfw.conf! Go figure.
Workaround
I created a 'launchd' plist/script just to add the rule I need, and that works OK. But why can't this just work like it's supposed to?
*The file setup-ipfw.plist in /Library/LaunchDaemons:*
<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “<a class="jive-link-external-small" href="http://www.apple.com/DTDs/PropertyList-1.0.dtd”>">http://www.apple.com/DT Ds/PropertyList-1.0.dtd”>
<plist version=“1.0”>
<dict>
<key>Disabled</key> <false/>
<key>LaunchOnlyOnce</key><true/>
<key>EnvironmentVariables</key>
<dict>
<key>DIGLLOYD_WEB</key><string>/web</string>
</dict>
<key>Label</key><string>DIGLLOYD Firewall Setup</string>
<key>OnDemand</key><false/>
<key>ProgramArguments</key>
<array>
<string>/web/scripts/setup-ipfw.sh</string>
</array>
<key>RunAtLoad</key><true/>
<key>ServiceDescription</key><string>DIGLLOYD map ports</string>
<key>UserName</key><string>root</string>
</dict>
</plist>
*The script (mangled in part by this forum):*
DIGLLOYD-INC-Server:~ lloyd$ cat /web/scripts/setup-ipfw.sh
export RULE_NUM=101
function shutdown()
ipfw delete $RULE_NUM
ipfw add $RULE_NUM fwd 127.0.0.1,8080 tcp from any to any 80 in
echo DIGLLOYD: added 'ipfw' rule for mapping port 80 to 8080

grep EE /var/log/Xorg.0.log while booted from Arch CD
Current Operating System: Linux apollo 2.6.22-ARCH #1 SMP PREEMPT Wed Sep 26 20:57:40 CEST 2007 i686
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
grep EE /var/log/Xorg.0.log after switching to regular boot and removing hash from marked comments in xorg.conf
Current Operating System: Linux apollo 2.6.23-ARCH #1 SMP PREEMPT Sun Nov 18 07:43:05 UTC 2007 i686
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
Yeah, not a whole lot.
Last edited by ghyspran (2007-12-05 05:14:06)

Similar Messages

  • In elements 12, when I click a photo in Window Explorer, it will load the elements 12 editor, but it doesn't load the pic ( *.jpg ) into the editor? It always did in earlier versations?

    in elements 12, when I click a photo in Window Explorer, it will load the elements 12 editor, but it doesn't load the pic ( *.jpg ) into the editor? It always did in earlier versations?

    green
    When you click on the Playclaw's Encoder tab, what do you see in the next dialog for Video Compression when the Container field in that dialog is set to .avi?
    Since you are seeing some video at all in Premiere Elements (glitchy as it is), I am assuming the video compression is not AVCHD. If that were the case, I would expect you not to be able to import the file at all. By any chance is the video compression Xvid or DivX?
    It appears that Video compression could also be "H.264 Intel QuickSync" with a mkv file extension. That seems ruled out since you say your file extension is .avi and not mkv.
    So, with the .avi file extension
    what is listed as Video Compression and what have you done, if anything, under the Encoder Setup button?
    Do you have the same issues with and without the antivirus and firewall(s) disabled?
    Also, if you took footage that worked before in Premiere Elements back into today's Premiere Elements, problems or no problems?
    At this time, can you import a bunch of jpg photos into a project and work without this type of issue?
    Thanks.
    ATR

  • Update fails and Embedded Youtube videos doesn't load

    Problem 1: All update (beta, RC) fails in my computer. After download, when I click in apply button, Firefox closes and a process "firefox.exe"starts with (~2.800 kB) and nothing happens. Every time and every versions in my 2 computers (Vista and Seven). It occurs since ~10 version (9, 10, 11... i don't remember.
    When I download the exe from Mozilla, the update works.
    Problem 2: Since the ~10 version or flash version, mostly embedded youtube videos doesn't load in firefox (in all pcs again). In youtube site it works, but embedded only shows a black square. In Google Reader it occurs all the time.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    If there are problems with updating then best is to download the full version of the Firefox installer.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 15.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    *http://kb.mozillazine.org/Installation_directory
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Firefox doesn't load/run/start at all.

    Firefox doesn't load/run at all. Never had any problems with Firefox before until today.
    My spyware warned me about a potential risk of a website asking for permission when browsing on Firefox...I clicked decline. Since then Firefox closed and won't start at all (a load icon begins to appear then nothing else happens. ''' Nothing'''). I don't know if it crashed or not as I didn't receive a crash report (not that I'd be able to access it anyhow I think). It just randomly shut down and since then won't start.
    I have restarted my computer, scanned my computer, turned off the firewall, reinstalled Firefox, attempted to run in safemode - none of these options correct the problem. It literally just does not start! It's not running as a hidden process/application either as I've look through my control pannel. Any help would be most appreciated.

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • New Icloud Terms and Conditions window pops up every time I try to check my email, or when I open setting. My email doesn't load because of this, so I haven't been able to check my email for months.

    'New Icloud Terms and Conditions' window pops up every time I try to check my email, or when I open setting. My email doesn't load because of this, so I haven't been able to check my email for months. When I click, 'view terms' it takes me to my Icloud section in settings, but the terms don't pop up. I plugged it into my iTunes to see if it would pop up, but that didn't work either. My phone is updated, and I'm pretty sure I already accepted the new terms and conditions on the last update a few months back.

    Hi munaxnight,
    If you are having issues with your iPhone continuing to ask you to accept terms and conditions, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • I have downloaded my music off of my phone to my iTunes account on my computer, but when i download music on my laptop it doesn't load to my phone? How do i do it?

    I have downloaded my music off of my phone to my iTunes account on my computer, but when i download music on my laptop it doesn't load to my phone? How do i do it?

    Have you selected the music to sync?

  • When i connect to a wifi netwrok it connects just fine ..but the login page doesn't load and then i get the error cannot connect to login page because to many redirects occured

    when i connect to wifi  network the login page doesn't load and an error msg pops up sayin login page can't open because too many redirects occured and i get the same exact error msg with safari over wifi and with any application connecting to a wifi ( windows live messenger, skype, yahoo....)
    can anyone help me plz??
    thanks

    I got the same error the other day.  I'm not 100% sure what it is but I turned WiFi off, then back on again, and reconnected without the error.

  • My browser will not load a page or update unless I am actively moving my cursor or typing. If I select a page and don't do anything then it doesn't load at all. I have no idea how this happened or how to fix it. Thanks.

    My browser will not load a page or update unless I am actively moving my cursor or typing. If I select a page and don't do anything then it doesn't load at all. I have no idea how this happened or how to fix it. Thanks.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Safari doesn't load, just crashes.

    Hi,
    Wondering if anyone can help me. Safari has started throwing errors up which means it doesn't load giving the below error message (it's not complete, can copy the rest if needed). Hadn't done any updates (I've just installed Mavericks in the hope that it would fix, but no luck).
    Process:         Safari [590]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         7.0 (9537.71)
    Build Info:      WebBrowser-7537071000000000~3
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [281]
    Responsible:     Safari [590]
    User ID:         501
    Date/Time:       2013-11-01 21:15:01.446 +0000
    OS Version:      Mac OS X 10.9 (13A603)
    Report Version:  11
    Anonymous UUID:  28560F35-9B71-2365-F3FE-FA54AAB0A2A9
    Crashed Thread:  11  Safari: HistoryTextCache caching
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Does anyone have any suggestions on how to fix? Have trawled the forums but nothing seems to work. Any help would be really appreciated, thanks.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Safari/History.plist
    Click Go then move the History.plist file to the Trash.
    Now type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Safari doesn't load redirect page

    Hi everybody,
    I have an activation mail for subscribers.
    It contains a link like :
    http://oneSite/do/something?param=yeah&url=https%3a%2f%2fanotherSite/do/somethin g/else%3fparam1=tata%26param2=titi&trolollo=true
    On ipad using safari (and only there) clicking it does the redirection (I can see the correct url on the new tab) but doesn't load the page. It stays blank.
    It also appens on ipad simulator.
    However using "open in a new tab" or pasting it in url bar works well they're not really userfriendly behaviors.
    Has anyone an idea about a workaround  ?

    Since it's both Macs ...
    Reset your Airport Express base station >  Resetting an AirPort base station FAQ

  • Safari doesn't load pages containing html5 canvas on iMac

    Suddenly Safari either is very slow to load or doesn't load some pages at all.
    I have tracked it down to be pages containing html5 canvas element.
    This happens only on iMac and Macbook Air. It doesn't happen on iPad nor on Safari on a Pc. It will happen on the Mac computer both when the pages are out on the internet and when the pages ar locally stored. It's driving me absolutely mad!
    I've tried emptying cache both through Safari menu and by removing Safari's Cache.db, I've reset Safari preferences, restarted, and changed DNS to Open DNS (though it seems strange it should be an issue since the problem also occurs when I run the site on localhost).
    If I open the page directly entering the url in the adressbar it works fine, it is when I try to access it from a link on another page on the site it doesn't load. If I press reload it will load fine. The link from other pages can be either an html <a href="url"> tag or javascript window.location or window.location.href neither works. The weird thing is it worked fine until just yesterday. And it works fine on every other machine except the Macintoshes. WHY

    Hi Carolyn,
    Thanks for the quick reply. I've tried everything you wrote now, however the problem remains.
    One thing I've noted though is that the page actually loads but it takes very very long time, and sometimes when the pages have been loaded the images doesn't look quite right until I hit the reload button.
    I've been thinking about another thing, there are a lot of effects like round corner, shape and text shadow, can it be these that cause the problem? I still think it is very strange though that it all of a sudden stopped working and that running it on PC or iPad everything is just fine.
    Another thing to add is that the computer is very new just got it like 2-3 weeks ago, and haven't hardly added anything except got Xcode, macVim, firefox and Filezilla.
    Also just before the problem appeared I ran a page with javascript that had me caught in an endless loop of alerts. Got that fixed, but ever since that some pages won't load correclty...
    Is there possibly anything else I can do to fix this?

  • Satellite A500-19Q: Win 7 doesn't load - UNMOUNTABLE BOOT VOLUME

    Hy everybody,
    I'm working since 2 months with my new A500-19Q running Win 7 Home Premium 64bit.
    Yesterday night the system has been regularly stopped with the windows "shut down" command.
    Today, the machine doesn't load win 7 at all.
    If I let the loading work, the system reaches the blue screen with "UNMOUNTABLE_BOOT_VOLUME".
    If I try to recover the system with the recovery dvd made some time ago by Toshiba Utility, the starts to load informations but after some hard drive work, it stop with black screen and the arrow cursor, but anything else.
    I downloaded and burt the Windows 7 64bit Repair Disc, but as already sad, the system start loading but it doesn't get to the end.
    So it seems impossible to proceed with "chkdsk /f" command.
    What should I do finally?
    thanks
    Message was edited by: MikeB_2

    Hi
    The blinking cursor in the left upper corner means that something could be wrong with the HDD or the partition on the HDD.
    I had such issue some years ago on my notebook and in my case the HDD died it was a head crash.
    Anyway I think you should check if the HDD can be formatted using another disk
    You could try an Linux live CD or something like that

  • ITunes doesn't load all of my music

    For some reason iTunes doesn't load all the songs that's in My Music folder. I have over 3500 songs in that folder but it only imports 451 of them. I never had this problem until today. Can anyone tell me what's wrong

    Yes,
    Let's move the discussion from the iTunes for Mac to the iTunes for Windows forum.
    Thanks,

  • Firefox for android doesn't load all my passwords and corrupts bookmarks

    Firefox for Android doesn't load all my passwords on my tablet (Lenovo).
    Also, syncing corrupts my bookmarks on my desktop and laptop by inserting bookmarks which I have deleted days ago..
    It syncs through all three devices and I know that it syncs because when I sync from my desktop, all three devices have the same time-stamp of when they synced.
    It seems as though, if you have two usernames/passwords for the same login address, such as 2 Gmails - there is no dropdown which shows both emails/passwords from which to choose from.
    This is all very frustrating, especially when I'm out and only have my tablet and I need to login somewhere when I'm with a client, and I can't login because Firefox/Android doesn't show my login info or the bookmark that I need is not there, because my bookmarks are corrupted after a sync.
    I have lost clients because of this.

    Hi modularbase.
    I understand that there are some issues with sync between three devices. Specifically, there is an issue with corrupt bookmarks and passwords that are not stored.
    Please make sure these settings are set:
    * [[Control whether Firefox automatically fills in forms with your information]] * [[Usernames and passwords are not saved]]
    * [[Using Master Password on Firefox for Android]]- the password manager addon for mobile devices may benefit in this situation.
    However on mobile, specifically for Gmail signin, accounts.google.com can store a few mail accounts, however you would have to add an account by clicking on "Sign in with a different account". In Firefox, passwords are stored by website in the password manager.

  • Opening a new page via "open in new tab" doesn't load new page anymore

    I have been using firefox for a long time now because I love it's option of opening in a new tab while staying on the tab I am currently using.
    Recently, over the last week or so, when I open a link using a new tab, the page doesn't load in the new tab. It's just thinks and thinks and finally shows that the page is open, but the page is actually blank.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.''
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for

  • Error installing Adobe Premiere Pro 2.0 on winows 7

    Installing Adobe Premiere Pro 2.0 on my new Winows 7 computer and get an error 1311.source file not found.  The last file shown on the addy is Data1.cab.  Does anybody have an idea why that program will not install?  Thanks........

  • Problems with parameterized mapping in BPM

    Hi I am using an RFC lookup in a message mapping. I have declared the parameters/bindings in Message Mapping and Operations Mapping, but when I use the Operations Mapping in a transformation step in my BPM, I am asked for an "import" value. There are

  • To delete unsed master data's in info object

    Hi.,   Can any one please tell me how to delete unused master data's in an info object. Thanks, Selva

  • Static vs SingleTon

    I have a page reporting code in the form of jsp tag,which I include in some pages. I capture web page details like persontype,breadcrum details. I pass pageContext as parameter to a class and capture the information. Is it ok to use Single object or

  • Publishing portal service as Web Service !!

    Environment : EP 6.0 Sp2 on J2EE 6.20. Is there a way to publish web service for existing portal services ??