From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1Erggs-0002Qx-5B for garchives@archives.gentoo.org; Wed, 28 Dec 2005 19:10:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBSJ9cdO002437; Wed, 28 Dec 2005 19:09:38 GMT Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBSJ9aGq026552 for ; Wed, 28 Dec 2005 19:09:37 GMT Received: by xproxy.gmail.com with SMTP id t10so1263364wxc for ; Wed, 28 Dec 2005 11:09:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references; b=Gv3J/7LfZ75oF1cDmg3mRSN4mx2j2CXvYPvOs2unf/d2KAnuhm2WkFdFcqPhS3GbXvge733CcP6ahM5SzgCGG61/eBDWG+j0B8KIy4Npp8qcZBdoV/qOZ9TAhJNd0hI50ED1KleDJSBZYEsn8/9pa/vu45qyxW7Q5YFt+18TnMQ= Received: by 10.70.15.6 with SMTP id 6mr7995481wxo; Wed, 28 Dec 2005 11:09:36 -0800 (PST) Received: by 10.70.26.13 with HTTP; Wed, 28 Dec 2005 11:09:36 -0800 (PST) Message-ID: <7399af0a0512281109u17c21de3rfc69c73285245b@mail.gmail.com> Date: Wed, 28 Dec 2005 19:09:36 +0000 From: =?ISO-8859-1?Q?Jo=E3o_Br=E1zio?= Sender: jbrazio@gmail.com To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] GNAP+VPN=PROBLEMS In-Reply-To: <43B29454.8050701@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10250_10492295.1135796976407" References: <7399af0a0512280345g442fe576n8f3df66267f353fb@mail.gmail.com> <43B29454.8050701@gentoo.org> X-Archives-Salt: 951f4b37-f2d6-4c1f-84c9-4de1cf76eab6 X-Archives-Hash: 74c3164395af4930d5524d1e1e582004 ------=_Part_10250_10492295.1135796976407 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear Thierry, It works great but now I've got another problem, I'm trying to compile GNAP with nylon, a sock proxy and the following error occurs: File: myspecs/extensions.conf extensions: nylon nylon/packlist: nylon libevent nylon/cleanup: /usr/share Portage: http://mirrors.tds.net/gentoo/snapshots/portage-20051227.tar.bz2 # gnap_make -t extensions -e myspecs -p portage-20051227.tar.bz2 GNAP Core Building tool gnap_make version 1.8.2 * Checking parameters... [ ok ] * 'livecd-stage1' or 'extensions' was selected without 'stage3'. * Should I use the seed stage as stage3 result ? [N]: y * The following targets will be called: * [extensions] * Preparing portage snapshot... [ ok ] * [extensions] stage start... [ ok ] * Building nylon extension... [ !! ] * Extension build failed, see ./gnap_make-20051228.err and .out for det [ !! ] * Cleaning temporary directories... [ ok ] Build failed, try man gnap_make for more help # cat gnap_make-20051228.err >>> Regenerating /etc/ld.so.cache... Performing Global Updates: /usr/portage/profiles/updates/4Q-2005 (Could take a couple of minutes if you have a lot of binary packages.) .=3D'update pass' *=3D'binary update' @=3D'/var/db move' s=3D'/var/db SLOT move' S=3D'binary SLOT move' p=3D'update /etc/portage/package.*' # cat gnap_make-20051228.out ........................ Calculating dependencies !!! Problem in sys-apps/portage dependencies. !!! [Errno 38] Function not implemented: '/var/cache/edb/dep//usr/portage/sys-apps/.update.8098.portage-2.0.53' exceptions Calculating dependencies !!! Problem in net-proxy/nylon dependencies. !!! [Errno 38] Function not implemented: '/var/cache/edb/dep//usr/portage/net-proxy/.update.8144.nylon-1.2-r2' exceptions Gentoo Catalyst, version 1.1.10.10 Copyright 2003-2005 The Gentoo Foundation Distributed under the GNU General Public License version 2 Using command line specified Catalyst configuration file, /etc/catalyst/catalyst.conf Setting storedir to config file value "/var/tmp/catalyst" Setting portdir to default value "/usr/portage" Setting distdir to config file value "/usr/portage/distfiles" Setting options to config file value "pkgcache kerncache" Setting sharedir to config file value "/usr/lib/catalyst" Package cache support enabled. Kernel cache support enabled. WARNING: No value set for key: grp/use deleting key: grp/use Building natively for x86 Checking for processes running in chroot and killing them. Running command "/bin/bash /usr/lib/catalyst/targets/support/kill- chroot-pids.sh" Running action sequence: dir_setup Setting up directories... Running action sequence: unpack_and_bind Unpacking stage tarball... Running command "/bin/tar xjpf /var/tmp/catalyst/builds/gnap/stage3- x86-20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228" Unpacking portage tree snapshot... Running command "/bin/tar xjpf /var/tmp/catalyst/snapshots/portage- 20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/usr" Configuring profile link... Running command "rm -f /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile" Running command "ln -sf ../usr/portage/profiles/uclibc/x86/hardened /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.profile" Running action sequence: chroot_setup Setting up chroot... Running command "cp /etc/resolv.conf /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc" Running command "mv /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts.bck" Running command "cp /etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts" Running command "rm -f /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/make.conf" Running action sequence: setup_environment Running action sequence: run_local Running command "/bin/bash /usr/lib/catalyst/targets/grp/grp.sh run pkgset nylon 'nylon' 'libevent'" Traceback (most recent call last): File "modules/grp_target.py", line 44, in run_local cmd("/bin/bash "+self.settings["sharedir"]+\ File "/usr/lib/catalyst/modules/catalyst_support.py", line 102, in cmd raise CatalystError,myexc CatalystError: None !!! catalyst: GRP build aborting due to error. On 12/28/05, Thierry Carrez wrote: > > Jo=E3o Br=E1zio wrote: > > > I've been trying to configure GNAP as a VPN server without any success. > > > > I want to allow 10 clients connected to the VPN server at the same time > > and each one of them should have a different local IP address. This is > > possible to do with a bridge. > > This is also possible to do without a bridge, using OpenVPN 2.0 "server" > mode. See http://openvpn.net/howto.html > > > I need to create br0 bridge with eth0 with tap0. The problem is that I > > can't see the interfaces when I do ifconfig -a altought i can see > > /dev/net/tun so I think TUN/TAP module is loaded. > > GNAP vanilla kernel is missing bridge support. > > > Can this be done with a vanilla GNAP system ? > > How is supposed to use the USE_VPN flag on GNAP, p2p VPN or a > > Server-to-many solution ? > > USE_VPN triggers the use of OpenVPN. It supports both modes. > > -- > Thierry Carrez (Koon) > GNAP Developer > -- > gentoo-embedded@gentoo.org mailing list > > -- Cumprimentos, Jo=E3o Br=E1zio. ------=_Part_10250_10492295.1135796976407 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear Thierry,
It works great but now I've got another problem, I'm tryin= g to compile GNAP with nylon, a sock proxy and the following error occurs:<= br>
File: myspecs/extensions.conf
  extensions: nylon

&nb= sp; nylon/packlist: nylon libevent
  nylon/cleanup: /usr/share

Portage: http://mirrors.tds.n= et/gentoo/snapshots/portage-20051227.tar.bz2


# gnap_make -t = extensions -e myspecs -p=20 portage-20051227.tar.bz2
GNAP Core Building tool gnap_make version 1.8.2=
 * Checking parameters...       = ;            &n= bsp;            = ;            &n= bsp;    [ ok ]
 * 'livecd-stage1' or 'extensions' wa= s selected without 'stage3'.
 * Should I use the seed stage as stage3 result ? [N]: y
 = * The following targets will be called:
 * [extensions]
 * = Preparing portage snapshot...       &nbs= p;            &= nbsp;           &nbs= p;         [ ok ]
 * [exten= sions] stage start...         =             &nb= sp;            =           [ ok ]
 *   Building nylon extension...    =             &nb= sp;            =              [ = !! ]
 * Extension build failed, see ./gnap_make-20051228.err and .o= ut for det  [ !! ]
 * Cleaning temporary directories... &= nbsp;           &nbs= p;            &= nbsp;           [ ok ]
Build failed, try man gnap_make for more help


# cat gnap_mak= e-20051228.err
>>> Regenerating /etc/ld.so.cache...


= Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
(Could = take a couple of minutes if you have a lot of binary packages.)
  .=3D'update pass'  *=3D'binary update'  @=3D'/var/db m= ove'
  s=3D'/var/db SLOT move' S=3D'binary SLOT move' p=3D'update /= etc/portage/package.*'


# cat gnap_make-20051228.out
.........= ...............
Calculating dependencies

!!! Problem in sys-apps/portage dependencies.
!!! [Errno 38] Fun= ction not implemented: '/var/cache/edb/dep//usr/portage/sys-apps/.update.80= 98.portage-2.0.53' exceptions
Calculating dependencies

!!! Proble= m in net-proxy/nylon dependencies.
!!! [Errno 38] Function not implemented: '/var/cache/edb/dep//usr/porta= ge/net-proxy/.update.8144.nylon-1.2-r2' exceptions
Gentoo Catalyst, vers= ion 1.1.10.10
Copyright 2003-2005 The G= entoo Foundation
Distributed under the GNU General Public License version 2

Using= command line specified Catalyst configuration file, /etc/catalyst/catalyst= .conf
Setting storedir to config file value "/var/tmp/catalyst"= ;
Setting portdir to default value "/usr/portage"
Setting di= stdir to config file value "/usr/portage/distfiles"
Setting op= tions to config file value "pkgcache kerncache"
Setting shared= ir to config file value "/usr/lib/catalyst"
Package cache support enabled.
Kernel cache support enabled.

=         WARNING: No value set for key: g= rp/use
        deleting key: grp/use<= br>
Building natively for x86
Checking for processes running in chroo= t and killing them.
Running command "/bin/bash /usr/lib/catalyst/targets/support/kill-= chroot-pids.sh"
Running action sequence: dir_setup
Setting up di= rectories...
Running action sequence: unpack_and_bind
Unpacking stage= tarball...
Running command "/bin/tar xjpf /var/tmp/catalyst/builds/gnap/stage= 3-x86-20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228"=
Unpacking portage tree snapshot...
Running command "/bin/tar xj= pf /var/tmp/catalyst/snapshots/portage- 20051228.tar.bz2 -C /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/usr"Configuring profile link...
Running command "rm -f /var/tmp/catal= yst/tmp/gnap/grp-x86-20051228/etc/make.profile"
Running command &qu= ot;ln -sf ../usr/portage/profiles/uclibc/x86/hardened /var/tmp/catalyst/tmp= /gnap/grp-x86-20051228/etc/make.profile"
Running action sequence: chroot_setup
Setting up chroot...
Runnin= g command "cp /etc/resolv.conf /var/tmp/catalyst/tmp/gnap/grp-x86-2005= 1228/etc"
Running command "mv /var/tmp/catalyst/tmp/gnap/grp-x= 86-20051228/etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-20051228/etc/hosts= .bck"
Running command "cp /etc/hosts /var/tmp/catalyst/tmp/gnap/grp-x86-= 20051228/etc/hosts"
Running command "rm -f /var/tmp/catalyst/t= mp/gnap/grp-x86-20051228/etc/make.conf"
Running action sequence: se= tup_environment
Running action sequence: run_local
Running command "/bin/bash /= usr/lib/catalyst/targets/grp/grp.sh run pkgset nylon 'nylon' 'libevent'&quo= t;

Traceback (most recent call last):
  File "modules/g= rp_target.py", line 44, in run_local
    cmd("/bin/bash "+self.settings["share= dir"]+\
  File "/usr/lib/catalyst/modules/catalyst_suppor= t.py", line 102, in cmd
    raise CatalystError,myex= c
CatalystError: <unprintable instance object>
None

!!! catalyst: GRP build aborting due to error.

= On 12/28/05, Thie= rry Carrez < koon@gentoo.org> wrote:
Jo=E3o Br= =E1zio wrote:

> I've been trying to configure GNAP as a VPN serve= r without any success.
>
> I want to allow 10 clients connected to the VPN server at = the same time
> and each one of them should have a different local IP= address. This is
> possible to do with a bridge.

This is also= possible to do without a bridge, using OpenVPN=20 2.0 "server"
mode. See http://openvpn.net/howto.html

> I need to create br0 bridg= e with eth0 with tap0. The problem is that I
> can't see the interfaces when I do ifconfig -a altought i can see
> /dev/net/tun so I think TUN/TAP module is loaded.

GNAP vani= lla kernel is missing bridge support.

> Can this be done with a v= anilla GNAP system ?
> How is supposed to use the USE_VPN flag on GNA= P, p2p VPN or a
> Server-to-many solution ?

USE_VPN triggers the use of OpenV= PN. It supports both modes.

--
Thierry Carrez (Koon)
GNAP Deve= loper
--
gentoo-embedded@gentoo.org mailing list




--
Cumprimentos,
Jo=E3o Br=E1zio. ------=_Part_10250_10492295.1135796976407-- -- gentoo-embedded@gentoo.org mailing list