From owner-freebsd-questions Sun Jan 2 7:37:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id 150AD14E51 for ; Sun, 2 Jan 2000 07:37:22 -0800 (PST) (envelope-from papalia@udel.edu) Received: from morgaine (nyf-ny12-34.ix.netcom.com [198.211.18.226]) by wondermutt.net (8.9.3/8.9.3) with SMTP id KAA20620 for ; Sun, 2 Jan 2000 10:39:56 -0500 (EST) (envelope-from papalia@udel.edu) Message-Id: <4.1.20000102103607.00992620@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sun, 02 Jan 2000 10:37:45 -0500 To: freebsd-questions@freebsd.org From: John Subject: IPFW Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I was hoping someone might be able to help me muddle through understanding and correcting a few of my filter rules. Network configuration is: * FreeBSD gateway maintaining an assigned Outside IP * Same box maintains an Inside IP on 192.168.x.x subnet * All inside boxes assigned 192.168.x.x IP's For example, if I want to allow SSH connections only *to* the FreeBSD box, but I want both the FreeBSD and the internal boxes to be able to generate outgoing SSH sessions in the outside world, is the following enough?: # Allow all traffic from inside out $fwcmd add pass all from ${iip} to ${inet}:${imask} $fwcmd add pass all from ${inet}:${imask} to ${iip} # Allow access to SSH $fwcmd add pass any from any to ${oip} 22 setup $fwcmd add pass any from ${oip} to any 22 setup # Allow all established connections to pass $fwcmd add pass tcp from any to any established Also, if I wanted users on the inside network to be able to access external hosts for popmail, but wanted to have popmail disabled on the freebsd server, would the following solve the problem, or would it cause a security hole?: $fwcmd add pass any from ${inet}:${imask} to any 110 via ${oif} setup Thanks in advance!!! --John Papalia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message