Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 17:21:05 -0500
From:      Anthony Schneider <aschneid@mail.slc.edu>
To:        freebsd-questions@freebsd.org
Subject:   Natd and port forwarding
Message-ID:  <20020109172104.A6621@mail.slc.edu>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjw8wk8ACgkQ+rDjkNht5F1dUACfdB8NsJ9OXuTaC0AyOVTSYCDu
ljcAoIlj2zO9dZvdTF7s03gSqcI7JKj0
=9bdD
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020109172104.A6621>