All of lore.kernel.org
 help / color / mirror / Atom feed
* [ipset] Match both on source AND destination
@ 2013-04-11 14:52 Jimmy Thrasibule
  2013-04-11 15:02 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 6+ messages in thread
From: Jimmy Thrasibule @ 2013-04-11 14:52 UTC (permalink / raw)
  To: netfilter

Hi,

Is it possible to match both source and destination from the same set.

I have two networks:

- 192.168.1.0/24
- 192.168.2.0/24

And I'd like to match packets going from one to another (the set can be
bigger of course).

Without ipset it would be:

-A FORWARD -s 192.168.1.0/24 -d 192.168.2.0/24 -j ACCEPT

However this won't work using ipset:

-A FORWARD -m set --match-set mynets src,dst -j ACCEPT

However, as stated in the man page match is done only on src and
therefore this is not the behavior I was expecting.

A part from listing each networks one by one, do you see any solution
for that?

--
Jimmy



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-11 18:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 14:52 [ipset] Match both on source AND destination Jimmy Thrasibule
2013-04-11 15:02 ` Jozsef Kadlecsik
2013-04-11 15:23   ` Jimmy Thrasibule
2013-04-11 15:30     ` Jozsef Kadlecsik
2013-04-11 16:58       ` Jimmy Thrasibule
2013-04-11 18:07         ` Jozsef Kadlecsik

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.