## Surveillance Panel

This panel is for configuring several crime logging functions in case you received a subpoena for user surveillance. To enable the crime-logging function, please configure the mix with the additional flag `--enable-crime-detection` before compiling it.

NOTE:
When performing a crime-logging measure all mixes must have crime detection enabled. Otherwise the logging will not yield a usable result.

### Global parameters

Here you can specify parameters that apply to all surveillance scenarios

- Log Payload:
  This option is only relevant for last mixes. It determines whether the last mix should merely log the destination URL or the whole upstream payload of a connection that triggers one of the surveillance cases.

  IMPORTANT NOTE:
  The decision whether or not to log the payload must be explicitly justified by the subpoena. Incorrect payload logging is a violation of the operator contract and liable to prosecution.

### Surveillance scenarios

There are three possible surveillance scenerios that can be configured:

- URL surveillance:
  In this case all connections are logged that tries to connect to a URL that matches one of the specified regular expressions. You can add a valid expression by entering it in the corresponding text field and hitting Add. If you want to remove an expression select it in the choice box and press Remove

- Payload surveillance:
  This scenario covers the logging of connections that deliver upstream payload matching one of the specified regular expressions. You can add or remove the expression the same way as mentioned above.

- IP surveillance:
  Here you can specify IP adresses of users whose connections need to be logged. Add and remove valid IPv4 addresses the same way as mentioned above.