[NETFILTER]: ip_tables: per-netns FILTER, MANGLE, RAW
Now, iptables show and configure different set of rules in different netnss'. Filtering decisions are still made by consulting only init_net's set. Changes are identical except naming so no splitting. P.S.: one need to remove init_net checks in nf_sockopt.c and inet_create() to see the effect. Signed-off-by:Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by:
Patrick McHardy <kaber@trash.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/netns/ipv4.h 5 additions, 0 deletionsinclude/net/netns/ipv4.h
- net/ipv4/netfilter/iptable_filter.c 29 additions, 12 deletionsnet/ipv4/netfilter/iptable_filter.c
- net/ipv4/netfilter/iptable_mangle.c 29 additions, 12 deletionsnet/ipv4/netfilter/iptable_mangle.c
- net/ipv4/netfilter/iptable_raw.c 29 additions, 12 deletionsnet/ipv4/netfilter/iptable_raw.c
Please register or sign in to comment