27-10 CHAPTER 27: PACKET FILTERSAdding Filters to theManaged ListThe add filter command verifies filter syntax prior to adding the filter to themanaged list. If the syntax is valid, no message is generated and the commandprompt returns. If syntax errors exist, error messages are generated detailing thecause of the errors.If the syntax is invalid, the filter is still added to the managed list with a status ofverify failed. To correct filter file errors, you must make the changes to the originalfilter file using a text editor and re-TFTP the file to flash memory. You must thenuse the verify filter command to check the filter file syntax. For more informationabout the verify filter command refer to the verify filter command write-up.Use the add filter command to add a filter file to the list of managed filters.It may be helpful to use the list filters command to see a list of filter filessuccessfully stored in flash memory.Removing a Filter froman Interfaceset interfaceinput_filter““output_filter””Use this command to remove a filter that is assigned to an interface.The ““ value represents a null value and removes the defined filter from theinterface. For example, to remove an output filter from an interface named eth:1,you would use this command:set interface eth:1 output_filter ““Deleting a Packet Filterdelete filterUse this command to remove a filter from the filter list.delete file Use this command to delete a filter file permanently from flash memory.Verifying Filter FileSyntaxThe verify filter command is useful if you make changes to a filter file that hasalready been added to the managed list and re-TFTP the file back into FLASHmemory (using the same file name).This command checks the filter file syntax, compiles it and if valid, generates nomessage, returning you to the command prompt. If invalid the OfficeConnectGateway generates error messages.Although filter file changes take effect on an interface immediately after you issuethe set interface command, you must set interface after verification to apply thenew filter rules to that interface.For example, to verify a filter file named no_spam.flt you would enter thefollowing:verify filter no_spam.flt