Skip to contentSkip to conversation

BUG: kernel 3.10 + ipset + NET_NS

DISCUSSION V. Lavrov 2 participants 2 messages Sep 9, 2013 netfilter

lore
Share & tools
lore

V. Lavrov

author
#0 lore raw

ipset does not support NET_NS. All containers have a common ipsets.

Host:

root@ls-gw2:~# ipset -V
ipset v6.19, protocol version: 6
root@ls-gw2:~# uname -r
3.10.10
iroot@ls-gw2:~# pset -N xxx hash:ip
root@ls-gw2:~# ipset -A xxx 1.1.1.1

LXC:

root@orig:~# ipset -L xxx
Name: xxx
Type: hash:ip
Revision: 1
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 8280
References: 0
Members:
1.1.1.1
root@orig:~# ipset -A xxx 2.2.2.2

Host:

root@ls-gw2:~# ipset -L
Name: xxx
Type: hash:ip
Revision: 1
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 8296
References: 0
Members:
1.1.1.1
2.2.2.2