How to Restrict Filter Activity to Local or Relay

This article describes how to restrict the behavior of a socket or script filter to apply only for local or relay messages.

Solution

WARNING: This procedure involves manual editing of the main Axigen configuration file. Special care is advised.

By default, the socket filters, when activated, will apply to both relay and local messages. Using this procedure you can restrict them to apply only on remotely delivered messages or on locally delivered messages.

  1. Activate the filter
  2. Stop the Axigen service.
  3. Open the Axigen configuration file ("axigen.cfg"). It can be found in the "run" folder of the Axigen working directory.
  4. Find the section containing the server active filter list: serverActiveFilters = (
  5. Identify your filter by its name and find the line referring to it deployment: applyOn = (local relay)
  6. Change the line to fit your scenario: applyOn = (local) or applyOn = (relay)
  7. Save the changes and start the Axigen service.
Linux only NOTE: You may find the server does not start after you save the changes. This may happen if the owner of the configuration file has changed during the editing steps. To fix this problem use the following procedure:
  1. Run as root: chown axigen:axigen <work_dir_path>/run/axigen.cfg
  2. Start the Axigen service back up.
NOTE: If the Axigen service still does not start, you have to check the configuration file for any possible syntax errors.
OS: LinuxWindowsFreeBSDNetBSDOpenBSDSolaris
Distros: DEB based distros amd64