All of lore.kernel.org
 help / color / mirror / Atom feed
* ip_nat_irc bug?
@ 2001-12-10 10:52 Ido Diamant
  2001-12-10 19:14 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Ido Diamant @ 2001-12-10 10:52 UTC (permalink / raw)
  To: linux-kernel

Hello,

 After compiling kernel 2.4.16, I'v seen that I can't dcc chat bots
running on my local computer. I tried to see why its happening, and
couldn't get into any reasonable idea.
Yesterday I remembered that I compiled the 2.4.16 with the ip_nat_irc
module, and loaded it by default with my firewall. I rmmod ip_nat_irc and
suddenly I could dcc chat my local bots.
Q. Why is it happening?
Q. Am I using this module correctly? as far as I know, I just need to load
the module, and thats it, am I wrong? should I create some kind of rule
for it?
Q. Is it bug?

  Thanks,
        Ido Diamant


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

* Re: ip_nat_irc bug?
  2001-12-10 19:14 ` David S. Miller
@ 2001-12-10 11:26   ` Ido Diamant
  0 siblings, 0 replies; 3+ messages in thread
From: Ido Diamant @ 2001-12-10 11:26 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

Thanks. I will check it now.


On Mon, 10 Dec 2001, David S. Miller wrote:

>    From: Ido Diamant <ido@the.linux-dude.net>
>    Date: Mon, 10 Dec 2001 12:52:11 +0200 (IST)
>
>     After compiling kernel 2.4.16, I'v seen that I can't dcc chat bots
>    running on my local computer. I tried to see why its happening, and
>    couldn't get into any reasonable idea.
>    Yesterday I remembered that I compiled the 2.4.16 with the ip_nat_irc
>    module, and loaded it by default with my firewall. I rmmod ip_nat_irc and
>    suddenly I could dcc chat my local bots.
>    Q. Why is it happening?
>    Q. Am I using this module correctly? as far as I know, I just need to load
>    the module, and thats it, am I wrong? should I create some kind of rule
>    for it?
>    Q. Is it bug?
>
> This patch fixes the bug:
>
> diff -u --recursive --new-file --exclude=CVS --exclude=.cvsignore ../vanilla/2.4/linux/net/ipv4/netfilter/ip_nat_irc.c linux/net/ipv4/netfilter/ip_nat_irc.c
> --- ../vanilla/2.4/linux/net/ipv4/netfilter/ip_nat_irc.c	Tue Oct 30 15:08:12 2001
> +++ linux/net/ipv4/netfilter/ip_nat_irc.c	Sat Dec  8 19:23:27 2001
> @@ -1,8 +1,8 @@
>  /* IRC extension for TCP NAT alteration.
> - * (C) 2000 by Harald Welte <laforge@gnumonks.org>
> + * (C) 2000-2001 by Harald Welte <laforge@gnumonks.org>
>   * based on a copy of RR's ip_nat_ftp.c
>   *
> - * ip_nat_irc.c,v 1.15 2001/10/22 10:43:53 laforge Exp
> + * ip_nat_irc.c,v 1.16 2001/12/06 07:42:10 laforge Exp
>   *
>   *      This program is free software; you can redistribute it and/or
>   *      modify it under the terms of the GNU General Public License
> @@ -81,7 +81,7 @@
>  	}
>
>  	newdstip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip;
> -	newsrcip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip;
> +	newsrcip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip;
>  	DEBUGP("nat_expected: DCC cmd. %u.%u.%u.%u->%u.%u.%u.%u\n",
>  	       NIPQUAD(newsrcip), NIPQUAD(newdstip));
>
>


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

* Re: ip_nat_irc bug?
  2001-12-10 10:52 ip_nat_irc bug? Ido Diamant
@ 2001-12-10 19:14 ` David S. Miller
  2001-12-10 11:26   ` Ido Diamant
  0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2001-12-10 19:14 UTC (permalink / raw)
  To: ido; +Cc: linux-kernel

   From: Ido Diamant <ido@the.linux-dude.net>
   Date: Mon, 10 Dec 2001 12:52:11 +0200 (IST)

    After compiling kernel 2.4.16, I'v seen that I can't dcc chat bots
   running on my local computer. I tried to see why its happening, and
   couldn't get into any reasonable idea.
   Yesterday I remembered that I compiled the 2.4.16 with the ip_nat_irc
   module, and loaded it by default with my firewall. I rmmod ip_nat_irc and
   suddenly I could dcc chat my local bots.
   Q. Why is it happening?
   Q. Am I using this module correctly? as far as I know, I just need to load
   the module, and thats it, am I wrong? should I create some kind of rule
   for it?
   Q. Is it bug?

This patch fixes the bug:

diff -u --recursive --new-file --exclude=CVS --exclude=.cvsignore ../vanilla/2.4/linux/net/ipv4/netfilter/ip_nat_irc.c linux/net/ipv4/netfilter/ip_nat_irc.c
--- ../vanilla/2.4/linux/net/ipv4/netfilter/ip_nat_irc.c	Tue Oct 30 15:08:12 2001
+++ linux/net/ipv4/netfilter/ip_nat_irc.c	Sat Dec  8 19:23:27 2001
@@ -1,8 +1,8 @@
 /* IRC extension for TCP NAT alteration.
- * (C) 2000 by Harald Welte <laforge@gnumonks.org>
+ * (C) 2000-2001 by Harald Welte <laforge@gnumonks.org>
  * based on a copy of RR's ip_nat_ftp.c
  *
- * ip_nat_irc.c,v 1.15 2001/10/22 10:43:53 laforge Exp
+ * ip_nat_irc.c,v 1.16 2001/12/06 07:42:10 laforge Exp
  *
  *      This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
@@ -81,7 +81,7 @@
 	}
 
 	newdstip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip;
-	newsrcip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip;
+	newsrcip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip;
 	DEBUGP("nat_expected: DCC cmd. %u.%u.%u.%u->%u.%u.%u.%u\n",
 	       NIPQUAD(newsrcip), NIPQUAD(newdstip));
 

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

end of thread, other threads:[~2001-12-10 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-10 10:52 ip_nat_irc bug? Ido Diamant
2001-12-10 19:14 ` David S. Miller
2001-12-10 11:26   ` Ido Diamant

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.