Date: Tue, 25 Jul 2000 19:59:05 -0500 From: Stephen Montgomery-Smith <stephen@math.missouri.edu> To: Mike Hoskins <mike@adept.org> Cc: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>, freebsd-security@FreeBSD.ORG Subject: Re: Problems with natd and simple firewall Message-ID: <397E37D9.AA26139@math.missouri.edu> References: <Pine.BSF.4.21.0007251622410.28594-100000@snafu.adept.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Hoskins wrote:
>
> On Tue, 25 Jul 2000, Mike Hoskins wrote:
>
> > Aye... A thoroughly-commeneted 'dynamic' rc.firewall option may be the
> > best thing to come out of all this.
>
> And, along those lines... Comments on the following, please. It attempts
> to mimic 'simple' as closely as possible and use compatible terminology
> for ease of comparison.
>
> + ${fwcmd} add allow ip from ${oip} to any keep-state
> + ${fwcmd} add allow ip from ${inet}:{$imask} to any keep-state
> +
> .....................
> + # Allow DNS queries out in the world
> + ${fwcmd} add pass udp from any 53 to ${oip}
> + ${fwcmd} add pass udp from ${oip} to any 53
> +
> + # Allow NTP queries out in the world
> + ${fwcmd} add pass udp from any 123 to ${oip}
> + ${fwcmd} add pass udp from ${oip} to any 123
> +
I don't think the DNS and NTP stuff is necessary. Aren't they
both covered by the first two rules?
------
Also, shouldn't NTP be
> + ${fwcmd} add pass udp from any 123 to ${oip} 123
> + ${fwcmd} add pass udp from ${oip} 123 to any 123
and how about for the DNS stuff:
> + # Allow DNS queries out in the world
> + ${fwcmd} add pass udp from ${my-name-server} 53 to ${oip}
> + ${fwcmd} add pass udp from ${oip} to ${my-name-server} 53
--
Stephen Montgomery-Smith
Department of Mathematics, University of Missouri, Columbia, MO 65211
Phone 573-882-4540, fax 573-882-1869
http://www.math.missouri.edu/~stephen stephen@math.missouri.edu
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?397E37D9.AA26139>
