Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 1998 18:29:38 -0700
From:      "James Johnson" <jjohnson@spry.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   NATD part 2
Message-ID:  <003401bde4ff$4d680ce0$0101a8c0@flashpoint>

next in thread | raw e-mail | index | archive | help
Okay thanks for the suggestions all but they arent working


I dial into my isp which assigns me a dynamic IP (for the time being, soon
they are going to offer static which I plan to get).

I have my freebsd box setup as a gateway for my LAN. The FreeBSD machine has
an IP of 192.168.1.2. The NT Box has an IP of 192.168.1.1....

I want to take incoming connections to port 80 (http) and redirect them to
the NT Box

Since I have to dial into my ISP my device is tun0.

The BSD box is connected to the lan via ep0

I have the following setup

rc.firewall
----------------------
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via tun0
/sbin/ipfw add pass all from any to any

natd.cf
-----------------------
interface tun0
redirect_port tcp 192.168.1.1:80 80

I invoke natd -f /etc/natd.cf   after establishing my connection using ppp.
(actually, ppp.linkup does :)

My kernel is compiled with divert and firewall enabled.

When I attempt to connect to the ip my isp assigns me, it does not redirect
rather it refuses the connection. What did I screw up? :)

Thanks
--James



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401bde4ff$4d680ce0$0101a8c0>