From owner-freebsd-questions Tue Apr 17 15:40:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from h24-69-46-74.gv.shawcable.net (h24-69-46-74.gv.shawcable.net [24.69.46.74]) by hub.freebsd.org (Postfix) with ESMTP id 1E7B437B422 for ; Tue, 17 Apr 2001 15:40:11 -0700 (PDT) (envelope-from michael@tenzo.com) Received: from h24-69-46-74.gv.shawcable.net (localhost.gv.shawcable.net [127.0.0.1]) by h24-69-46-74.gv.shawcable.net (8.11.1/8.11.1) with SMTP id f3HMgi124693 for ; Tue, 17 Apr 2001 15:42:44 -0700 (PDT) (envelope-from michael@tenzo.com) Content-Type: text/plain; charset="iso-8859-1" From: "Michael O'Henly" Reply-To: michael@tenzo.com Organization: TENZO Design Date: Tue, 17 Apr 2001 15:42:44 -0700 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01041713553100.23795@h24-69-46-74.gv.shawcable.net> Content-Transfer-Encoding: 8bit To: freebsd-questions@freebsd.org Subject: Three easy questions about ipfw... Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi... 1. If I'm running sendmail but use it for outgoing mail only, should I make port 25 open on the external interface? For instance, would my machine need to receive responses confirming that outgoing mail has been successfully delivered? 2. If I describe $onet as being equal to $oip, ipfw seems to be able to figure out the bitmask for $onet by looking at the netmask. (I know this because I can see what $onet is expanded to when I do a 'ipfw list'.) Is this acceptable or should I be using something like: onet=`ifconfig rl0 | grep "inet " | awk '{print $2 "/23"}'` 3. If describing $onet as being equal to $oip _is_ acceptable, would it be more efficient to enter it as... onet=`ifconfig rl0 | grep "inet " | awk '{print $2}'` omask="255.255.254.0" oip=onet Or better yet, to just replace all occurrences of $onet in rc.firewall with $oip? Thanks. M. -- Michael O'Henly TENZO Design To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message