Date: Thu, 12 Jul 2001 09:38:43 +1000 From: "Murray Taylor" <taylorm@bytecraft.au.com> To: "Tony Wells" <tony@camel.kdsi.net>, "Murray Taylor" <taylorm@bytecraftsystems.com> Cc: <questions@FreeBSD.ORG> Subject: Re: ipfw and #comments Message-ID: <007901c10a62$9f68c1c0$2a7627cb@pc99101401.bytecraft.au.com>
next in thread | raw e-mail | index | archive | help
This I know ... and if I wish to use these lines in rc.conf firewall_enable="YES" firewall_type="/etc/rulesfile" and leave rc.firewall as distributed then I need to have a file of just valid commands and rules. In this case it would be nice if the rules file could cope with comments in a simple form # must be first non-blank char on line # comment continues up to and including newline all else must be rules and commands as at present. Murray Taylor Project Manager Bytecraft Systems Pty Ltd ph: +61 3 9587 2555 Fax: +61 3 9587 1614 Email: taylorm@bytecraftsystems.com -----Original Message----- From: Tony Wells <tony@camel.kdsi.net> To: Murray Taylor <taylorm@bytecraftsystems.com> Cc: questions@FreeBSD.ORG <questions@FreeBSD.ORG> Date: Thursday, 12 July 2001 00:10 Subject: Re: ipfw and #comments > >If you look at the example /etc/rc.firewall file, it's actually a shell >script. You can put comments in a script that performs the ipfw >commands. If you make your firewall commands permanent by adding the >pertinent lines to /etc/rc.conf, it will expect the file to be a shell >script anyway. > >Once again, look at /etc/rc.firewall for guidance. > >Murray Taylor wrote: >> >> Has anyone looked into allowing # comments in the >> rules file that can be fed into ipfw ?? >> >> It would be great if one could intersperse the >> rule and command lines with comments in the file >> given to ipfw via >> >> ipfw /etc/rulefile >> >> I cant yet as I an up to my whatzit in alligators as we >> relocate the business, but its an idea.... >> >> Murray Taylor >> Project Manager >> Bytecraft Systems Pty Ltd >> ph: +61 3 9587 2555 >> Fax: +61 3 9587 1614 >> Email: taylorm@bytecraftsystems.com >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > 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?007901c10a62$9f68c1c0$2a7627cb>
