Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > ipfw counters

ipfw counters
Thread Tools
aux
Junior Member
Join Date: Apr 2005
Status: Offline
Reply With Quote
Oct 21, 2006, 08:01 PM
 
Does OS X reset the ipfw counters when a machine acquires DHCP-assigned IP address?
I noticed some strange ipfw behavior that I can't explain by anything else.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Oct 21, 2006, 09:31 PM
 
I can't find anything specific about ipfw's behavior with a DHCP-assigned address, but it seems logical that it might reset counters based on all new addresses. What kind of behavior are you seeing?
Glenn -----
OTR/L, MOT, Tx
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 21, 2006, 09:33 PM
 
What do you mean by the ipfw counters?
     
aux  (op)
Junior Member
Join Date: Apr 2005
Status: Offline
Reply With Quote
Oct 22, 2006, 12:04 AM
 
Originally Posted by besson3c View Post
What do you mean by the ipfw counters?
ipfw creates counters for each rule, one can see the counter values with
ipfw show


Originally Posted by ghporter View Post
I can't find anything specific about ipfw's behavior with a DHCP-assigned address, but it seems logical that it might reset counters based on all new addresses. What kind of behavior are you seeing?

This happens only if I start the machine with no network available and then connect the network cable so that the machine gets IP address by DHCP. Before connecting the cable, the counters are zero, which is expected. After connecting the cable, some of the counters start increasing, which also is normal. However several seconds after the machine gets IP address, the counters are somehow reset to 0, which is strange. Some time after that, they start increasing again.

This doesn't happen if the machine has static IP address and starts with no network available. It doesn't happen if it starts when connected to the network (regardless of whether the IP address is static or DHCP-assigned). On a second thought -- it may happen, but I can't see it because it happens during startup.

The only thing that I can think of is that OS X resets the rules when the IP address changes or when the machines acquires new IP address.

Any ideas are welcome
     
aux  (op)
Junior Member
Join Date: Apr 2005
Status: Offline
Reply With Quote
Oct 25, 2006, 09:14 PM
 
bump
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:30 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2