From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 14:40:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 962BA16A401 for ; Fri, 7 Apr 2006 14:40:31 +0000 (UTC) (envelope-from guru@Sisis.de) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B45A043D4C for ; Fri, 7 Apr 2006 14:40:30 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id QAA14213; Fri, 7 Apr 2006 16:38:12 +0200 (CEST) (envelope-from guru@Sisis.de) From: guru@Sisis.de Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xma014209; Fri, 7 Apr 06 16:37:49 +0200 Received: from rebelion.Sisis.de (rebelion.Sisis.de [193.31.10.34]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id QAA03435; Fri, 7 Apr 2006 16:40:08 +0200 (CEST) (envelope-from guru@Sisis.de) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id k37Ee6r2002575; Fri, 7 Apr 2006 16:40:06 +0200 (CEST) (envelope-from guru@Sisis.de) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to guru@Sisis.de using -f Date: Fri, 7 Apr 2006 16:40:06 +0200 To: hal Message-ID: <20060407144005.GA2554@rebelion.Sisis.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-RELEASE (i386) Cc: freebsd-questions@freebsd.org Subject: Re: Choosing which interface to use X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias.Apitz@Sisis.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 14:40:31 -0000 El día Friday, April 07, 2006 a las 08:29:03AM -0600, hal escribió: > I am setting up a VPN client on a 6.0 box of mine. > As a result of the VPN client (openvpn) running I > have two interfaces active, xl0 needed by the dhcp > client and tun0 used by the vpn client. > > The question. How do I tell an application perhaps telnet, > ssh, or ftp to use tun0 and not xl0? This is not a question of telling the application to use certain interface, xl0 or tun0. You will direct this application to some remote IP addr and the routing table defines the interface to be used. Have a look at 'netstat -rn' and add more routings if necesary. matthias -- Matthias Apitz / Sisis Informationssysteme GmbH ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL) D-82041 Oberhaching, Gruenwalder Weg 28g Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211 http://www.sisis.de/~guru/