From owner-freebsd-net@FreeBSD.ORG Mon Apr 24 16:08:19 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F02FB16A407 for ; Mon, 24 Apr 2006 16:08:19 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from elise.stf.rewt.org.uk (elise.stf.rewt.org.uk [82.152.108.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0D4743D45 for ; Mon, 24 Apr 2006 16:08:17 +0000 (GMT) (envelope-from joe@joeholden.co.uk) Received: from [82.152.108.166] (im.a.raver.not.a.fucking.drug-addict.be [82.152.108.166]) (authenticated bits=0) by elise.stf.rewt.org.uk (8.13.6/8.13.4) with ESMTP id k3OG86jO021592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Apr 2006 17:08:09 +0100 (BST) (envelope-from joe@joeholden.co.uk) Message-ID: <444CF7E5.7030209@joeholden.co.uk> Date: Mon, 24 Apr 2006 17:08:05 +0100 From: Joe Holden User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Ludovit Koren References: <87k69f0ydi.fsf@lk107.tempest.sk> In-Reply-To: <87k69f0ydi.fsf@lk107.tempest.sk> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=13A6D1E7; url=http://www.joeholden.co.uk/pubkey.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD65881EA323E2347900567EF" X-Spam-Status: No, score=-1.3 required=3.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on elise.stf.rewt.org.uk Cc: freebsd-net@freebsd.org Subject: Re: Routes for interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: joe@joeholden.co.uk List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 16:08:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD65881EA323E2347900567EF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ludovit Koren wrote: >=20 > Hi, >=20 > is there any possibility to set the routing statically on a multi-homed= > host so, that the packet is sent back via the same interface, as it has= > came from? Something like more default routes (it is not good name for > it, I hope you can understand what I mean), depending on particular > interface. >=20 >=20 > Thanks. >=20 > Regards, > lk > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" You could probably achieve this using IPFW FWD (this is how I achieve something similiar). Either using ipfw fwd $GW1 ip from any to any via $INT1, or using an ip range, ie; ipfw fwd $GW2 ip from 1.2.3.4/24 to any or something. Thanks, Joe Holden finger joe@joeholden.co.uk --------------enigD65881EA323E2347900567EF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFETPfldQJXshOm0ecRAi8CAKCC/Yo+Sr7JgHajZF9Q/2jQ0/gOZgCfRJU3 76YHVDzfeFohC/vPoioPX6w= =aBd5 -----END PGP SIGNATURE----- --------------enigD65881EA323E2347900567EF--