From owner-freebsd-questions Mon Nov 15 15:29:38 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 EEE2815119 for ; Mon, 15 Nov 1999 15:29:33 -0800 (PST) (envelope-from chris@pagan.tzo.com) Received: from boredsince98 [10.0.0.2] by cc200872-a.wstal1.sc.home.com (SMTPD32-5.05) id A7728C015E; Mon, 15 Nov 1999 18:29:54 -0500 From: "Christian Williams" To: Subject: natd, ipfw, & some general questions Date: Mon, 15 Nov 1999 18:31:18 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all, After scouring the web to get these issues straightened out, I need your help. I have configured a FreeBSD 3.3 machine as my gateway machine for 3 other machines behind. I have read both the natd and ipfw man pages and done everything necessary to set it up. Unfortunately, not everything that is supposed to work, is. Internet access works beautifully from inside. It's coming back in that's the issue. /etc/rc.conf contains: --begin rc.conf--- (among other things) gateway_enable="YES" firewall_enable="YES" firewall_type="open" natd_enable="YES" --end rc.conf-- natd is called from a natd.startup script which contains: --begin natd.startup-- ifconfig tx0 netmask 255.255.255.192 (gotta love @home) route add default ifconfig de0 10.0.0.4 netmask 255.0.0.0 syctl -w net.inet.ip.forwarding=1 natd -f /etc/natd.conf ---end natd.startup----- natd.conf contains: --begin natd.conf-- interface tx0 same_ports yes use_sockets yes dynamic yes (do I need this if my IPs are static?) redirect_port tcp 10.0.0.6:8383 8383 redirect_port udp 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 100 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 udp 10.0.0.6:25 25 ---end natd.conf---- I can get to the web server(s) and obviously email is working, but I cannot get the 8383(webmail), pop3, or IMAP services to redirect. I'm also curious how I can test these services from an inside machine (10.0.0.2). I'm only able to hit the web servers from a machine outside the firewall. Please help. I have a business that depends on this. Thanks! Christian Williams 010101010101010101010101 Man In A Box Productions chris@pagan.tzo.com http://pagan.tzo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message