Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 1998 17:44:11 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        "James Johnson" <jjohnson@spry.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NATD part 2 
Message-ID:  <199809211644.RAA18529@woof.lan.awfulhak.org>
In-Reply-To: Your message of "Sun, 20 Sep 1998 18:29:38 PDT." <003401bde4ff$4d680ce0$0101a8c0@flashpoint> 

next in thread | previous in thread | raw e-mail | index | archive | help
Why don't you use ppp -alias ?

You can put ``alias redirect_port tcp 192.168.1.1:80 80'' in your 
config file.

> 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
> 

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



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?199809211644.RAA18529>