Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 1997 16:27:21 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        brian@awfulhak.demon.co.uk (Brian Somers)
Cc:        archie@whistle.com, terry@lambert.org, ari.suutari@ps.carel.fi, hackers@freebsd.org, cmott@srv.net
Subject:   Re: ipdivert & masqd
Message-ID:  <199701300027.QAA25259@bubba.whistle.com>
In-Reply-To: <199701300011.AAA15020@awfulhak.demon.co.uk> from Brian Somers at "Jan 30, 97 00:11:56 am"

next in thread | previous in thread | raw e-mail | index | archive | help

> I've essentially got the following:
> 
>     ----------------                   ----------------------
>     |   10.0.10.2   |------------------|   10.0.10.1        |
>     ----------------                   |                    |
>                                        |   10.0.1.254 (ed0) |
>                                        ----------------------
>                                                |
>                                                |
>     -----------------                          |
>     |   10.0.1.1    |---------------------------
>     -----------------
> 
> with a mask of ffffff00 everywhere and the machine in the middle using
> the following:
> 
>     ipfw add 100 divert 6668 all from any to any via ed0

A-HAH! :-)

Could you try the following patch?

Thanks,
-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

Index: ip_input.c
===================================================================
RCS file: /cvs/freebsd/src/sys/netinet/ip_input.c,v
retrieving revision 1.50.2.1
diff -c -r1.50.2.1 ip_input.c
*** 1.50.2.1	1996/11/11 23:40:45
--- ip_input.c	1997/01/30 00:26:55
***************
*** 431,436 ****
--- 431,438 ----
  	return;
  
  ours:
+ 	ip_divert_ignore = 0;	/* This packet is being consumed locally,
+ 				   so we can turn off loop avoidance. */
  
  	/*
  	 * If offset or IP_MF are set, must reassemble.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701300027.QAA25259>