From owner-freebsd-questions Fri Nov 19 20: 9:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc200872-a.wstal1.sc.home.com (cc200872-a.wstal1.sc.home.com [24.1.38.150]) by hub.freebsd.org (Postfix) with ESMTP id 6C51014C99 for ; Fri, 19 Nov 1999 20:09:41 -0800 (PST) (envelope-from fee@pagan.tzo.com) Received: from cc200872-a.wstal1.sc.home.com [10.0.0.4] by cc200872-a.wstal1.sc.home.com with ESMTP (SMTPD32-5.05) id AF29500268; Fri, 19 Nov 1999 23:10:17 -0500 Date: Fri, 19 Nov 1999 23:06:28 -0500 (EST) From: Christian Williams X-Sender: fee@cc200872-a.wstal1.sc.home.com To: questions@freebsd.org Subject: a little help from my friends? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok people, ive got a serious problem here. I have a FreeBSD 3.2 box here setup as a gateway for a small LAN. The internal network addresses are 10.0.0.x with a mask of 255.0.0.0 I have a external interface on this box as well with an outside address of: x.x.x.x I have a custom kernel compiled with the two required variables to run natd. I have a natd.startup script that runs on boot that enters all of the required network configuration in and calls natd with the -f /etc/natd.conf statement. Within the natd.conf file are a the natd flags I need for my network here, as well as some other commands. --natd.startup-- firewall_type="open" firewall_enable="YES" ifconfig tx0 x.x.x.x netmask 255.255.255.0 route add default x.x.x.x if config de0 10.0.0.4 netmask 255.0.0.0 sysctl -w net.inet.ip.forwarding=1 natd -f /etc/natd.conf & /sbin/ipfw -f flush /sbin/ipfw add 100 divert natd all from any to any via tx0 /sbin/ipfw add 64999 pass all from any to any via lo0 /sbin/ipfw add 65000 pass all from any to any --end natd.startup-- --natd.conf-- interface tx0 same ports yes redirect_port tcp 10.0.0.6:8383 8383 redirect_port upd 10.0.0.6:8383 8383 redirect_port tcp 10.0.0.6:80 80 redirect_port udp 10.0.0.6:80 80 redirect_port tcp 10.0.0.6:110 110 redirect_port udp 10.0.0.6:110 110 redirect_port tcp 10.0.0.6:143 143 redirect_port udp 10.0.0.6:143 143 redirect_port tcp 10.0.0.6:25 25 redirect_port upd 10.0.0.6:25 25 --end natd.conf-- None of my redirects are working! Where have I gone wrong? Please Help! I've read the Complete FreeBSD on this, all man pages, and scoured the newsgroups! TIA! Christian > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message