From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 11 06:00:42 2003 Return-Path: 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 E31D537B401 for ; Wed, 11 Jun 2003 06:00:42 -0700 (PDT) Received: from mx.vipnet.ro (cosmic.vipnet.ro [193.230.219.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 5F85B43FB1 for ; Wed, 11 Jun 2003 06:00:38 -0700 (PDT) (envelope-from vladg@vipnet.ro) Received: (qmail 34204 invoked from network); 11 Jun 2003 13:02:21 -0000 Received: from unknown (HELO rtfm.vipnet.ro) (193.230.219.12) by cosmic.vipnet.ro with SMTP; 11 Jun 2003 13:02:21 -0000 Date: Wed, 11 Jun 2003 15:59:51 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20030611155951.1f434cdc.vladg@vipnet.ro> In-Reply-To: <1055336153.3963.26.camel@localhost.localdomain> References: <1055336153.3963.26.camel@localhost.localdomain> Organization: VipNET Bucharest X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=..LvzpF'v5igMy/" Subject: Re: Policy Routing / NAT Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 13:00:43 -0000 --=..LvzpF'v5igMy/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On 11 Jun 2003 08:55:53 -0400 Ryan Wilkins wrote: > Hello.. > > I'm setting up a TCP protocol testbed for testing various enhanced TCP > stacks for use over high bandwidth, high latency links such as > Satellite. Due to hardware limitations of the FreeBSD boxes we're > using(1U rackmount), there are no expansion slots left for additional > network cards. This forces me to have to run some traffic over one > gateway and the rest of the traffic over another gateway, all through > one ethernet. The problem I have is I need to change the source > address of some packets based on destination address. I was able to > accomplish this in Linux using Source NAT. I'm not real well versed > in FreeBSD hence the reason I'm asking for any assistance here. Does > anyone have an idea how to change the source address based on > destination address? > yes. in the ipnat configuration file you should write something like this: map from to -> one thing though ... I've noticed the kernel trying to send the packets on the default gateway, no matter what the was. So I used ipfw as well, for policy routing of nat'ed packets. I might have done something wrong as well, I really don't know, but searching the newsgroups archives I found no answer at all, and this seemed to be the only option. > Thanks in advance for any help. > > Ryan Wilkins > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > -- Vlad GALU Network Administrator VipNET Bucharest tel: 021/3039940 email: vladg@vipnet.ro web: http://www.vipnet.ro PGP: http://mirapoint.vipnet.ro/public_key.pgp --=..LvzpF'v5igMy/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5yfLBQlxy6GegvARAq5AAJ9/IXTDPXNG/MzL2b8dVGj6UCkkkwCg0sTV kDWO0kUfMo1k2stSnZJWU+k= =u2fU -----END PGP SIGNATURE----- --=..LvzpF'v5igMy/--