Linux Netfilter discussions
 help / color / mirror / Atom feed
* filter before NAT
@ 2011-10-11 14:24 Ethy H. Brito
  2011-10-11 19:37 ` Andrew Beverley
  0 siblings, 1 reply; 4+ messages in thread
From: Ethy H. Brito @ 2011-10-11 14:24 UTC (permalink / raw)
  To: netfilter


Hi All.

I am trying to control some outbound traffic thru a Linux NATing box via this:

$TC filter add dev $INTERNET protocol ip parent 3: pref 1 \
   u32  \
      match ip src 192.168.106.2  \
   flowid 3:5602

The problem is that the packets are hooked *after* passing SNAT and all the
rules can see is the outbound IP. So no redirects to the corresponding
flowid occur.

Is it possible to make the filter rule above "see" the packets before they
get NATed?

Environment
	Slackware 12.1.0 kernel 2.6.24.5-smp
	

Regards

Ethy

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

end of thread, other threads:[~2011-10-12  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 14:24 filter before NAT Ethy H. Brito
2011-10-11 19:37 ` Andrew Beverley
2011-10-11 19:52   ` Ethy H. Brito
2011-10-12  7:01     ` Nikolay Kichukov

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