Date: Sat, 6 Jul 2002 06:33:45 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Grant Cooper <grant.cooper@nucleus.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Executing lines in rc.conf Message-ID: <Pine.BSF.4.21.0207060623390.34882-100000@wonkity.com> In-Reply-To: <000501c22456$13c41480$040a0a0a@ab.hsia.telus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 5 Jul 2002, Grant Cooper wrote: > # /sbin/natd -n vr0 > # /sbin/ipfw add 100 divert natd all from any to any via vr0 > > I can add enter these lines manually through the command lines but I don't > know how to add them to /etc/rc.conf everytime and execute it. The book I > have says to enter the lines above. So I am now asking the Networking Gods > for help. Sometimes the easiest way to find this kind of stuff is to look at /etc/defaults/rc.conf. That has the default settings for all kinds of things; I think you'll end up adding this to rc.conf: natd_enable="YES" natd_interface="vr0" natd_flags="-n" firewall_enable="YES" firewall_script="/etc/rc.firewall" firewall_type="OPEN" firewall_quiet="YES" Note that firewall_type line: it leaves everything wide open, not just vr0. Probably you'll end up writing your own list of firewall rules and adding them to /etc/rc.firewall. Copy one of the sections in there and make your adjustments, then change firewall_type to use that section. -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207060623390.34882-100000>