Linux Netfilter discussions
 help / color / mirror / Atom feed
* raw table and NOTRACK target
@ 2009-06-25 13:05 Ramunas Vabolis
  2009-06-26  7:08 ` Покотиленко Костик
  0 siblings, 1 reply; 9+ messages in thread
From: Ramunas Vabolis @ 2009-06-25 13:05 UTC (permalink / raw)
  To: netfilter


	Hello there,

I'm looking after a pretty busy router. Right now everyting in
PREROUTING chain is joined to NOTRACK.:

/sbin/iptables -t raw -A PREROUTING -j NOTRACK
I need to intercept and redirect tcp http sessions. But right now I'm
stuck while trying to add exceptions to NOTRACK.

I've tried adding one test on local IP (real one) and use RETURN target:
/sbin/iptables -t raw -I PREROUTING -p tcp -s host.ip --dport 80 -j RETURN
/sbin/iptables -t raw -I PREROUTING -p tcp -d host.ip --sport 80 -j RETURN

Does not work. (Tried -j ACCEPT too). Tried creating another chain, jump
from PREROUTING to that chain and RETURN or ACCEPT in there. Same thing.
iptables -vxnL shows increase only in first rule

When I add any of these rules, tcpdump shows that packet arrives to
inner interface, but does not travel to outgoing one. 

I'm using Debian Lenny with stock packets (kernel icluding). 

What am I missing or doing wrong? From what I gather packets are 
discarded at raw table. 

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

end of thread, other threads:[~2009-06-29  7:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 13:05 raw table and NOTRACK target Ramunas Vabolis
2009-06-26  7:08 ` Покотиленко Костик
2009-06-26  7:43   ` Ramunas Vabolis
2009-06-26  7:53     ` Philip Craig
2009-06-26  8:20       ` Ramunas Vabolis
2009-06-26 12:52     ` Покотиленко Костик
2009-06-26 13:09       ` Ramunas Vabolis
2009-06-26 13:31         ` Покотиленко Костик
2009-06-29  7:33           ` Ramunas Vabolis

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