Re: [PATCHv6 0/3] Interface group patches
From: David Miller <davem@davemloft.net>
Date: 2007-11-20 21:42:42
Also in:
netfilter-devel
From: Laszlo Attila Toth <redacted> Date: Tue, 20 Nov 2007 14:52:12 +0100
Jan Engelhardt írta:quoted
On Nov 20 2007 14:14, Laszlo Attila Toth wrote:quoted
This is the 6th version of our interface group patches. The interface group value can be used to manage different interfaces at the same time such as in netfilter/iptables.I take it you could not use...? iptables -i iif1 -j dosomething iptables -i iif2 -j dosomethingThis kind of usage requires static interface names. But there are dynamic interfaces such as ppp, where the actual name is not always known or sometimes they exist sometimes not. It is difficult to use iptables this way, and every ifup/ifdown requires change in the iptables ruleset (donwload it, modify and upload to the kernel). It may be too slow.
This is actually not true these days. When network devices are created user events are generated and the user can rename the device however they like using a mapping table of any kind. And at such point the problem you present doesn't actually exist, you can know what the device will be named. And if rule loading dynamically is slow, we should fix that instead of creating infrastructure and interfaces we don't actually need. - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html