From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 11 19:53:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B9EE16A41C; Mon, 11 Jul 2005 19:53:23 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3DA43D4C; Mon, 11 Jul 2005 19:53:19 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo (spyketembratel.ipadnet.com.br [200.249.204.142]) (authenticated bits=0) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j6BK6C0l024633; Mon, 11 Jul 2005 17:06:34 -0300 From: "Mario Lobo" Organization: IPAD To: freebsd-hackers@freebsd.org Date: Mon, 11 Jul 2005 16:53:25 -0300 MIME-Version: 1.0 Message-ID: <42D2A405.10443.923658@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Antivirus: avast! (VPS 0528-1, 11/07/2005), Outbound message X-Antivirus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Forcing a packet through an interface (OT?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 19:53:23 -0000 Forgive me if this is off-topic. How could I force a packet to go out through an interface, despite the default route? Suppose I have two interfaces connected to the internet: 1) rl0 (real.ip.no.1) ---> ISP x 2) rl1 (real.ip.no.2) ---> ISP y ISP y is just a backup link. ISP x is the working link. Don=B4t want to load-balance them. Use 2) ONLY if 1) is out. Suppose 1) is down. I switch to 2). But I have to keep testing 1) to see when it comes back up. How could I force a packet (ping maybe?) to www.whatever.com through 1), despite the default route being 2) ? I am aready binding the ping packet to the IP I want but that=B4s not enou= gh. any suggestions? thanks, -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br