Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2008 15:17:18 -0700
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>, freebsd-current@FreeBSD.org
Subject:   Re: Interface auto-cloning bug or feature?
Message-ID:  <48D8196E.7020005@FreeBSD.org>
In-Reply-To: <bb4a86c70809191551y774c233g5e664c431be62a50@mail.gmail.com>
References:  <48D2F942.4070801@FreeBSD.org>	 <20080919084201.GD44330@wep4035.physik.uni-wuerzburg.de>	 <48D38DFF.8000803@FreeBSD.org>	 <20080919203310.GA34131@localhost.my.domain>	 <bb4a86c70809191543y7f3d38ex73c48186dfd163c5@mail.gmail.com> <bb4a86c70809191551y774c233g5e664c431be62a50@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Patch works for me just fine. Thanks!

-Maxim

Maksim Yevmenkin wrote:
> On Fri, Sep 19, 2008 at 3:43 PM, Maksim Yevmenkin
> <maksim.yevmenkin@gmail.com> wrote:
>> [....]
>>
>>>> That what has caused me to look into this issue. You can find patch for
>>>> security/vpnc to prevent unbounded interface cloning here:
>>>>
>>>> http://sobomax.sippysoft.com/~sobomax/vpnc.diff
>>>>
>>> Ok, the patch prevents interface cloning, but I think it doesn't solve
>>> the actual problem.
>>> Let's wait for Maksim :)
>> ok, how about attached patch. i put it together *very* quickly and
>> only gave it a light testing. its for tap(4), because i could compile
>> it as a module and tun(4) is compiled into kernel by default, but the
>> idea should identical for tun(4). should be even simpler for tun(4)
>> because it does not have to deal with 2 kind of devices (i.e. tap and
>> vmnet). give it a try, and see if it works. please try both cloning
>> paths, i.e.
>>
>> 1) cat /dev/tap (/dev/vmnet) with and/or without unit number
>>
>> and
>>
>> 2) ifconfig tapX (vmnetX) create/destroy
>>
>> in the mean time i will prepare something similar for tun(4).
> 
> attached is similar patch for tun(4). i only made sure it compiles :)
> rebuilding kernel now...
> 
> thanks,
> max
> 




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