All of lore.kernel.org
 help / color / mirror / Atom feed
* Stateless NAT
@ 2005-06-07 15:27 Matin Tamizi
  2005-06-08  1:40 ` Feizhou
  0 siblings, 1 reply; 10+ messages in thread
From: Matin Tamizi @ 2005-06-07 15:27 UTC (permalink / raw)
  To: NetFilter

I'm trying to setup stateless NAT on a testbed I'm using for
university research on DDoS.  We are developing a stateless DDoS
prevention tool, but to test the software I need to use stateless NAT
to force traffic from outside through one computer, the router, and to
the victim.

I tried the NETMAP target module, but the router is still filtering my
out of state packets from the attack.  The following show the rules in
my nat table:

root # iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
NETMAP     all  --  anywhere             <victim's ip address> 192.168.13.2/32

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  192.168.13.2         anywhere           
to:<victim's ip address>

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

I appreciate any suggestions on how I could correct my setup so I can
use stateless.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Stateless NAT
@ 2005-02-24 11:11 John A. Sullivan III
  2005-02-24 16:43 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 10+ messages in thread
From: John A. Sullivan III @ 2005-02-24 11:11 UTC (permalink / raw)
  To: Netfilter users list

Thanks to some help from Philip Craig of SnapGear, I'm still alive on
this issue of UDP broadcast helping using iptables.  The next problem is
creating the stateless NAT that I need.  My first choice would be to do
this with iproute2 but it appears to be broken in the 2.6 kernel.

I next tried doing this by using the raw table and NOTRACK target for
udp broadcasts on the needed port and then DNAT on the same packets to
the unicast address.  However, apparently NOTRACK disables NAT so that
didn't work.  When using conntrack for most packets, how does one
disable conntrack for certain NAT packets only? In other words, how does
one do selective, stateless NAT in iptables? Thanks - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

If you would like to participate in the development of an open source
enterprise class network security management system, please visit
http://iscs.sourceforge.net



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

end of thread, other threads:[~2005-07-28 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-07 15:27 Stateless NAT Matin Tamizi
2005-06-08  1:40 ` Feizhou
2005-06-08  6:56   ` Guenter.Sprakties
2005-06-08  7:20     ` codewarrior
2005-06-09 13:43       ` Matin Tamizi
2005-07-28 20:54         ` Matin Tamizi
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24 11:11 John A. Sullivan III
2005-02-24 16:43 ` Jozsef Kadlecsik
2005-02-24 16:56   ` Sven Schuster
2005-02-24 19:08     ` 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.