From owner-freebsd-questions@FreeBSD.ORG Sun Aug 31 10:14:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBE21065684 for ; Sun, 31 Aug 2008 10:14:41 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9522A8FC08 for ; Sun, 31 Aug 2008 10:14:40 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from crab.unsane.co.uk (crab.unsane.co.uk [10.0.0.111]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7VAFHpJ015026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 31 Aug 2008 11:15:17 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48BA6EED.1080801@unsane.co.uk> Date: Sun, 31 Aug 2008 11:14:05 +0100 From: Vince Hoffman User-Agent: Thunderbird 2.0.0.16 (X11/20080827) MIME-Version: 1.0 To: d c References: <758349.507.qm@web65407.mail.ac4.yahoo.com> In-Reply-To: <758349.507.qm@web65407.mail.ac4.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: PPTP (VPN) FREEBSD 7-p3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 10:14:41 -0000 d c wrote: > I have used /usr/ports/net/pptpclient/ as long as I remember. I just setup a new 7.0 Desktop and installed the port. When I run pptp x.x.x.x I get: > > /bin/ip: not found > /bin/ip: not found > Loading /lib/libalias_cuseeme.so > Loading /lib/libalias_ftp.so > Loading /lib/libalias_irc.so > Loading /lib/libalias_nbt.so > Loading /lib/libalias_pptp.so > Loading /lib/libalias_skinny.so > Loading /lib/libalias_smedia.so > Bit odd this, it seems to have the linux command ip (from the iproute2 package) hard coded. routing.c: snprintf(buf, 255, "/bin/ip route get %s", ip); routing.c: snprintf(buf, 255, "/bin/ip route replace %s", route); routing.c: snprintf(buf, 255, "/bin/ip route delete %s", route); Not knowing the output format of the linux commands off hand I'm not sure if you could just replace them with /sbin/route or not, although freebsd route doesnt have a replace command that i know of. the cvsweb page at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pptpclient/ isnt responding so I couldnt tell you how it used to do it assuming its changed recently. Its probably worth your while asking the maintainer or filing a PR. > I searched for /bin/ip and could not find it nor could I find "ip" anywhere in the file system. > nope its a linuxism, doesnt exist in freebsd, for routing we use route. > man ip brings up info but it looks like it is not a bin but a structure used in c??? not too sure about that. > > Has anyone ran across this? Is there an alternate instead of ip? Perhaps I can hack it into the source. I would probably suggest using mpd (/usr/ports/net/mpd5) myself, its very well supported on freebsd and although it does way more than you need its pretty simple to setup, (the sample mpd.conf has an example pptp_client you can adapt.) Vince > > TIA > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"