Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 10:31:54 +0200
From:      Bart Matthaei <bart@xs4nobody.nl>
To:        freebsd-security@freebsd.org
Subject:   Route makes my machine crash.. (weird bug)
Message-ID:  <20010726103154.A24057@heresy.xs4nobody.nl>

next in thread | raw e-mail | index | archive | help
Hi,

i discovered something really odd last night.
It happened twice.. i checked if it wasn't a one-timer..

This is the deal:


62.58.36.22 - xs4nobody.nl
-> 10.0.0.1 - tunnel-remote
    |
-> 10.0.0.2 - tunnel-home ( real ip = 212.58.188.107 )
62.58.36.169 - lust.xs4nobody.nl (ip of my gateway at home. the ip is routed via the 10.0.0 gif tunnel)

Ok. I use ipfw to forward all the packets coming from my /30 into the tunnel.. So on my gateway, i use:
ipfw add $some security stuff for my indy ( with 62.58.36 ip )  and lust.
ipfw add fwd 10.0.0.1 all from 62.58.36.168/30 to any

now.. i use ipfw so i dont have to set a default route on my gateway via the tunnel ( every leech or download would go over the tunnel, and i'd rather have that kind of stuff over my normal quicknet ip ( less latency ) )

only my indy uses the tunnel by default.

ok.. last night i wanted to add a route so that all the traffic to 62.58.63.29 ( alias on xs4nobody.nl box ) via the tunnel.. 
So (i tried to route it directly to 10.0.0.1 ) i used  " route add 62.58.36.29 10.0.0.1 " .. i did it remote.. my connection promptly died..
when i got home, i saw that my screensaver on my freebsd box was frozen.. i tried to reach the machine via my internal network, but it was totally crashed..

So, i rebooted. and tried again to test if it was a bug...

this time, i got the routed it to the tunneled ip of my gateway, with the hope that my firewall would understand it and routed it to 10.0.0.1 via ipfw ..
"route add 62.58.36.29 62.58.36.169 " ..

*POOF* the box crashed again..

So i started thinking.. The problem is, i guess, i'm routing the stuff to my own IP (wich shouldn't really be a problem, but could cause the error because i use ipfw instead of a static route) .. So the routingtable screwes up.. _BUT_ .. It shouldn't cause my machine to crash..

Can anybody test this on other freebsd releases ?

I use freebsd 4.3-STABLE.. 4.3-RELEASE (one of a week ago) does the same thing..


With regards,

Bart Matthaei


-- 
Bart Matthaei           |       bart@xs4nobody.nl
                        |          +31 6 24907042
Cysonet Managed Hosting |        bart@cysonet.com
-------------------------------------------------
/* It's always funny until someone gets hurt..
 * (and then it's just hilarious)              */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




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