Linux Netfilter discussions
 help / color / mirror / Atom feed
* -m helper --helper -irc
@ 2004-08-17 18:04 Marcin Sura
  2004-08-17 19:35 ` Aleksandar Milivojevic
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Sura @ 2004-08-17 18:04 UTC (permalink / raw)
  To: netfilter

Hi

  I use following rule for marking irc dcc transfers from my NATed lan.

  iptables -t mangle -A PREROUTING -p tcp -m helper --helper irc \
  -m mark --mark 0 -j MARK --set-mark 1

  And this works perfectly when I send a file to somebody, and doesn't
  when somebody sends something to me. Why?

  

-- 
Pozdrawiam
 Marcin                         mailto:slacklist@op.pl



^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: -m helper --helper -irc
@ 2004-08-17 19:46 Jason Opperisano
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Opperisano @ 2004-08-17 19:46 UTC (permalink / raw)
  To: netfilter

>   I use following rule for marking irc dcc transfers from my NATed lan.
>
>   iptables -t mangle -A PREROUTING -p tcp -m helper --helper irc \
>   -m mark --mark 0 -j MARK --set-mark 1
>
>   And this works perfectly when I send a file to somebody, and doesn't
>   when somebody sends something to me. Why?

i was under the impression that ip_conntrack_irc was written to handle outbound DCC transfers only...not inbound.  there may be a patch floating around that makes it work inbound as well--try google / marc.theaimsgroup.com/?l=netfilter...

as an aside--what is that rule doing exactly, 'cause you've stumped me.  to me, it says, "if a packet has a mark = 0, set the mark to 1" and you're doing this in the PREROUTING chain of the mangle table--where is the mark = 0 coming from (as i can tell, it could only be coming from a previous rule in mangle:PREROUTING)?

-j


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

end of thread, other threads:[~2004-08-17 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-17 18:04 -m helper --helper -irc Marcin Sura
2004-08-17 19:35 ` Aleksandar Milivojevic
  -- strict thread matches above, loose matches on Subject: below --
2004-08-17 19:46 Jason Opperisano

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