Skip to content

Haka

services.haka.configFile

Specify which configuration file Haka uses. It can be absolute path or a path relative to the sample directory of the haka git repo.

Type: string

Default

"empty.lua"

Example

"/srv/haka/myfilter.lua"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.dump.enable

Whether to enable dump. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.dump.input

Path to file where incoming packets are dumped Type: path

Default

"/tmp/input.pcap"

Example

"/path/to/file.pcap"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.dump.output

Path to file where outgoing packets are dumped Type: path

Default

"/tmp/output.pcap"

Example

"/path/to/file.pcap"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.enable

Whether to enable Haka. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.interfaces

Specify which interface(s) Haka listens to. Use 'any' to listen to all interfaces.

Type: list of string

Default

["eth0"]

Example

["any"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.nfqueue

Whether to enable nfqueue. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.package

The haka package to use. Type: package

Default

pkgs.haka

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.pcap

Whether to enable pcap Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix

services.haka.threads

The number of threads that will be used. All system threads are used by default.

Type: signed integer

Default

0

Example

4

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/security/haka.nix