Linux Netfilter discussions
 help / color / mirror / Atom feed
* ipset question
@ 2011-09-18  8:10 hamann.w
  2011-09-18 10:47 ` Mr Dash Four
  0 siblings, 1 reply; 7+ messages in thread
From: hamann.w @ 2011-09-18  8:10 UTC (permalink / raw)
  To: netfilter



Hello,

I am trying to add ipset to an old system (kernel 2.6.16)
So I downloaded the old ipset and built it in a separate directory.
There was a little changes necessary, indicating that the distro had some stuff
backported into the kernel, but eventually it succeeded. I can create ipset,
add addresses to it and list them.

Now, when I try to add iptables rule, I get error about missing libipt_set.so
I have tried to recompile iptables on the machine (version 1.3.5 like the installed one),
but that does not build the missing file.
It seems that include/linux in iptables does not contain files from include/linux in ipset.
Would it make sense to just copy over these files? Are there any other changes necessary?

Regards
Wolfgang Hamann


^ permalink raw reply	[flat|nested] 7+ messages in thread
* IPSET question
@ 2006-03-27 19:20 bash
  0 siblings, 0 replies; 7+ messages in thread
From: bash @ 2006-03-27 19:20 UTC (permalink / raw)
  To: netfilter

 Hello All,
I have question about IPSET:
how to create new set with some random ip-addresses and nets (in cidr
format).

For example, I have "10.21.0.0/16", "10.90.20.0/26" networks and
"10.22.0.30", "10.23.0.30" ips.

I thought that "nethash" type of set will works, but as I see from
documentation (http://ipset.netfilter.org/ipset.man.html), "nethash"
can't handle net with /32. So i cant add "10.22.0.30" and "10.23.0.30"
ip in "nethash" SET :////

So... how to be? :)))


 -- 
Biomechanica Artificial Sabotage Humanoid


^ permalink raw reply	[flat|nested] 7+ messages in thread
* ipset question
@ 2004-12-10 22:47 Brett Oster
  2004-12-11 16:39 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 7+ messages in thread
From: Brett Oster @ 2004-12-10 22:47 UTC (permalink / raw)
  To: netfilter

I'm looking for a way to make my iptables rules more manageable, and so
I am attempting to use ipset.  However, I am not sure if it does what I
am trying to do.   I have many subnets that need to be SNATed
differently depending upon their destination.  As a test, I made two
iphash sets and loaded in one of my sets of sources and one set of
destinations.  However, when I try to apply the iptables rule, I get the
error:

iptables v1.3.0: Unknown arg `destination'

I am running 2.6.9 with the most current iptables, pom, and ipset from
Jozsef Kadlecsik's website
(http://people.netfilter.org/kadlec/ipset/install.html)

below is my test data:


-N source iphash --hashsize 1024 --probes 8 --resize 50 --netmask 24
-A sources 10.2.2.0
-A sources 10.2.3.0
-A sources 10.2.8.0
-A sources 10.2.7.0
-A sources 10.2.11.0
-A sources 10.2.4.0
-N destination iphash --hashsize 1024 --probes 8 --resize 50 --netmask
24
-A destination 10.2.254.0
-A destination 10.2.250.0
-A destination 10.2.6.0
-A destination 10.2.251.0
-A destination 10.2.249.0
-A destination 10.2.10.0
-A destination 10.2.14.0

iptables -t nat -A POSTROUTING -m set --set sources src -m set --set
destination dst -j SNAT --to-source <ipaddress>


I would appreciate any tips or pointers of what I've done wrong.

Brett



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

end of thread, other threads:[~2011-09-18 10:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18  8:10 ipset question hamann.w
2011-09-18 10:47 ` Mr Dash Four
  -- strict thread matches above, loose matches on Subject: below --
2006-03-27 19:20 IPSET question bash
2004-12-10 22:47 ipset question Brett Oster
2004-12-11 16:39 ` Jozsef Kadlecsik
2004-12-13 22:42   ` Brett Oster
2004-12-13 23:29     ` Jozsef Kadlecsik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox