[ previous ] [ next ] [ threads ]
 From:  "James W. McKeand" <james at mckeand dot biz>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall] Feature Request: Text based rule export/import
 Date:  Wed, 8 Dec 2004 14:34:44 -0500
Jesse Guardiani wrote:
> Hello,
> It'd be nice if there was an easy way to export/import
> rules in a text format. This would make sharing rules
> via the mailing list and friends/co-workers a lot easier.

Backup config.xml to your workstation. Then delete everything before
<filter> and after </filter>.  Then you have something someone could
copy and paste into their own config.xml and upload to their m0n0wall.
Keep in mind that if you use aliases the rules will have the alias not
the IP address.

I'm sure someone could write a script to parse the file to create a
simple list of rules...

James W. McKeand