Hi Jeff, You can opt to switch to a pre_tag_filter and tag packets basing on a filter. What matches the filter gets a certain tag and such tag is allowed through.
The beauty of this method is that the pre_tag_map can be reloaded at runtime - by switching refresh_maps to true. Still, as Karl suggested, you should script yourself a few lines to detect IP address changes at the interface, amend pre_tag_map contents and send a SIGUSR2 signal to pmacct in order to elicit the map reload. Cheers, Paolo On Wed, Mar 03, 2010 at 01:51:25AM -0800, Jeff Welling wrote: > Hey, > > Im finding that one of my ISPs changes my IP frequently. Its a > dynamically assigned IP and can't be expected to be static but based on > the line from my other ISP I guess I expected it to only change > infrequently. Regardless, in my config I _had_ been using > aggregate_filter lines with my IP, but this means that every time my IP > changes, I have to change the config right away or I lose statistics. > > My first try was to comment out the aggregate_filter lines, and that > does work with the exception of all packets having 0.0.0.0 instead of > their real IP address. > > Is there a way to get the actual IP to show up without having to specify > it in an aggregate_filter line in the config? > > Cheers, > Jeff. > > PS, it seems like the IP on the interface changed without the interface > going down or up again. Otherwise Id have the option of writing a > script and sticking it in /etc/network/if-up.d/ or something. > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists