From owner-freebsd-questions Wed Jan 9 14:48:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from science.slc.edu (Science.SLC.Edu [198.83.6.248]) by hub.freebsd.org (Postfix) with ESMTP id A402237B416 for ; Wed, 9 Jan 2002 14:48:21 -0800 (PST) Received: (from aschneid@localhost) by science.slc.edu (8.11.0/8.11.0) id g09ML6a08263 for freebsd-questions@freebsd.org; Wed, 9 Jan 2002 17:21:06 -0500 (EST) (envelope-from aschneid) Date: Wed, 9 Jan 2002 17:21:05 -0500 From: Anthony Schneider To: freebsd-questions@freebsd.org Subject: Natd and port forwarding Message-ID: <20020109172104.A6621@mail.slc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline So, I would like to be able to allow connections made to machine A on some port (let's say port 4040) to be forwarded seamlessly to port 80 on machine B. A is the acting gateway for my LAN, and B is a LAN client (internal ip address). What I have read states that I should have natd run as such: natd -n xl0 -redirect_port tcp client.B.ip:80 4040 However, if I telnet to port 4040 on machine A (which is running natd) I get a connection refused error. Any suggestions? I have even tried adding ipfw add divert natd all from any to any via xl0 which (sigh) doesn't do the trick. Any help would be appreciated. Also, please make sure to Cc: to my address as I am not subscribed to -questions. Thanks. -Anthony. --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjw8wk8ACgkQ+rDjkNht5F1dUACfdB8NsJ9OXuTaC0AyOVTSYCDu ljcAoIlj2zO9dZvdTF7s03gSqcI7JKj0 =9bdD -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message