From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 23 12:17:15 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 6CA9816A4CE for ; Tue, 23 Dec 2003 12:17:15 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id D339943D46 for ; Tue, 23 Dec 2003 12:17:12 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: from ussenterprise.ufp.org (bicknell@localhost [127.0.0.1]) by ussenterprise.ufp.org (8.12.9/8.12.9) with ESMTP id hBNKHCeC033695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 23 Dec 2003 15:17:12 -0500 (EST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.12.9/8.12.9/Submit) id hBNKHCZg033694 for freebsd-hackers@freebsd.org; Tue, 23 Dec 2003 15:17:12 -0500 (EST) Date: Tue, 23 Dec 2003 15:17:12 -0500 From: Leo Bicknell To: freebsd-hackers@freebsd.org Message-ID: <20031223201712.GA33497@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20031223165439.GA23721@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20031223165439.GA23721@ussenterprise.ufp.org> Organization: United Federation of Planets X-PGP-Key: http://www.ufp.org/~bicknell/ Subject: Re: natd + ipfw 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: Tue, 23 Dec 2003 20:17:15 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Well, I found the solution to my problem by random chance (futzing with other things), and it still doesn't make sense. Works: > ipfw add 1000 divert natd ip from any to any via fxp0 =20 Doesn't work: > ipfw add 1000 divert natd ip from any to any recv fxp0 > ipfw add 1001 divert natd ip from any to any xmit fxp0 Works: ipfw add 1000 divert natd ip from any to any in recv fxp0 ipfw add 1001 divert natd ip from any to any out xmit fxp0 I must not be clear on what "in" "out" "recv" and "xmit" mean, and after reading the manual page 3 times I'm now even more confused. I'd love for someone to explain to me why the middle one doesn't work (or, why in and out are required). --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/6KLINh6mMG5yMTYRAkoyAJ0R9rNscc/Dqq5RovPafHSSL1uWwwCfWuWl uUzAul+zxvFy/ItMH5GKjn8= =0vJH -----END PGP SIGNATURE----- --DocE+STaALJfprDB--