natd no longer working - libalias is at fault
    Sean McNeil 
    sean at mcneil.com
       
    Fri Apr  2 05:03:20 PST 2004
    
    
  
On Fri, 2004-04-02 at 04:35, Sean McNeil wrote:
> On Fri, 2004-04-02 at 04:12, Sean McNeil wrote:
> > Greetings,
> > 
> > System from March 30th worked fine.  Today, just rebuilt everything and
> > tcp isn't working through nat anymore.  udp still works.  It isn't the
> > kernel as I tried my old one and got the same problem.  I'm guessing the
> > recent changes to libalias did it.
> 
> Confirmed.  Rolling lib/libalias/alias.c back to version 1.40 fixed the
> problem.
The following line was unintentionally deleted:
*** /home/sean/alias.c  Fri Apr  2 04:59:52 2004
--- alias.c     Fri Apr  2 05:01:12 2004
*************** TcpAliasIn(struct libalias *la, struct i
*** 884,889 ****
--- 884,890 ----
   
  /* Restore original IP address */
                accumulate = twowords(&pip->ip_dst);
+               pip->ip_dst = original_address;
                accumulate -= twowords(&pip->ip_dst);
   
  /* If this is a transparent proxy packet, then modify the source
    
    
More information about the freebsd-current
mailing list