Re: drop dhcp request from a particular mac address, after a dhcp relay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 13 Mar 2010, Robert Nichols wrote:

> As for iptables, if you're using a high-level firewall builder to
> generate the rules, then yes, it will probably reload the entire rule
> set if you make any change.  If you work at a lower level and use the
> 'iptables' command directly, then only the rule you add or change is
> affected.  You can confirm that quite easily by running "iptables -vnL"
> before and after the change and observing that the packet counts for
> the other rules do not get reset.

No, this is not correct.

The iptables command downloads the whole ruleset from the kernel, 
including current counter values, modifies the downloaded version, and 
then uploads the whole resulting ruleset (again, with counter 
values) into the kernel again.

This "download whole ruleset, modify in userspace, upload" cycle is why 
iptables-restore is so much faster than multiple calls to the iptables 
program - it only downloads once, applies all changes from the input, 
and then uploads back to the kernel once.

c'ya
sven-haegar

-- 
Three may keep a secret, if two of them are dead.
- Ben F.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux