* How to add wildcard netmask to ipset?
@ 2012-09-21 7:35 ` İbrahim Ercan
0 siblings, 0 replies; 5+ messages in thread
From: İbrahim Ercan @ 2012-09-21 7:35 UTC (permalink / raw)
To: netfilter; +Cc: netfilter-devel
Hello,
We are using ipset and we want to add wildcard netmasks to ipset. We
are using hash:net to store our ips. Ipset does not accept adding
netmasks so when adding a network like 192.168.1.0/255.255.255.0 we
convert it to 192.168.1.0/24 CIDR notation and add. But a network like
192.168.2.0/255.0.255.0 cannot be converted to CIDR nor can be added
to ipset. What can we do?
--
İbrahim Ercan
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* How to add wildcard netmask to ipset?
@ 2012-09-21 7:35 ` İbrahim Ercan
0 siblings, 0 replies; 5+ messages in thread
From: İbrahim Ercan @ 2012-09-21 7:35 UTC (permalink / raw)
To: netfilter; +Cc: netfilter-devel
Hello,
We are using ipset and we want to add wildcard netmasks to ipset. We
are using hash:net to store our ips. Ipset does not accept adding
netmasks so when adding a network like 192.168.1.0/255.255.255.0 we
convert it to 192.168.1.0/24 CIDR notation and add. But a network like
192.168.2.0/255.0.255.0 cannot be converted to CIDR nor can be added
to ipset. What can we do?
--
İbrahim Ercan
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add wildcard netmask to ipset?
2012-09-21 7:35 ` İbrahim Ercan
(?)
@ 2012-09-21 8:10 ` Jozsef Kadlecsik
-1 siblings, 0 replies; 5+ messages in thread
From: Jozsef Kadlecsik @ 2012-09-21 8:10 UTC (permalink / raw)
To: İbrahim Ercan, Oguz Yilmaz; +Cc: netfilter, netfilter-devel
On Fri, 21 Sep 2012, ?brahim Ercan wrote:
> We are using ipset and we want to add wildcard netmasks to ipset. We
> are using hash:net to store our ips. Ipset does not accept adding
> netmasks so when adding a network like 192.168.1.0/255.255.255.0 we
> convert it to 192.168.1.0/24 CIDR notation and add. But a network like
> 192.168.2.0/255.0.255.0 cannot be converted to CIDR nor can be added
> to ipset. What can we do?
Sorry, ipset does not support wildcard netmasks. You have to fall back to
iptables.
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add wildcard netmask to ipset?
2012-09-21 7:35 ` İbrahim Ercan
@ 2012-09-21 8:27 ` Aidas Kasparas
-1 siblings, 0 replies; 5+ messages in thread
From: Aidas Kasparas @ 2012-09-21 8:27 UTC (permalink / raw)
To: İbrahim Ercan; +Cc: netfilter, netfilter-devel
On 2012.09.21 10:35, İbrahim Ercan wrote:
> Hello,
>
> We are using ipset and we want to add wildcard netmasks to ipset. We
> are using hash:net to store our ips. Ipset does not accept adding
> netmasks so when adding a network like 192.168.1.0/255.255.255.0 we
> convert it to 192.168.1.0/24 CIDR notation and add. But a network like
> 192.168.2.0/255.0.255.0 cannot be converted to CIDR nor can be added
> to ipset. What can we do?
>
You can allways add 256 entries into your ipset: 192.i.2.0/24 for all i
in 0..255 .
On the other hand, what do you use masks like these for?
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
+370 686 08473
http://www.gmc.lt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add wildcard netmask to ipset?
@ 2012-09-21 8:27 ` Aidas Kasparas
0 siblings, 0 replies; 5+ messages in thread
From: Aidas Kasparas @ 2012-09-21 8:27 UTC (permalink / raw)
To: İbrahim Ercan; +Cc: netfilter, netfilter-devel
On 2012.09.21 10:35, İbrahim Ercan wrote:
> Hello,
>
> We are using ipset and we want to add wildcard netmasks to ipset. We
> are using hash:net to store our ips. Ipset does not accept adding
> netmasks so when adding a network like 192.168.1.0/255.255.255.0 we
> convert it to 192.168.1.0/24 CIDR notation and add. But a network like
> 192.168.2.0/255.0.255.0 cannot be converted to CIDR nor can be added
> to ipset. What can we do?
>
You can allways add 256 entries into your ipset: 192.i.2.0/24 for all i
in 0..255 .
On the other hand, what do you use masks like these for?
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
+370 686 08473
http://www.gmc.lt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-21 8:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 7:35 How to add wildcard netmask to ipset? İbrahim Ercan
2012-09-21 7:35 ` İbrahim Ercan
2012-09-21 8:10 ` Jozsef Kadlecsik
2012-09-21 8:27 ` Aidas Kasparas
2012-09-21 8:27 ` Aidas Kasparas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.