1 import ../make-test-python.nix ({ pkgs, lib, ... }: {
4 meta.maintainers = with lib.maintainers; [ p-h ];
6 nodes.machine = { ... }: {
7 networking.firewall.enable = false;
8 networking.nftables.enable = true;
9 networking.nftables.ruleset = ''
12 type filter hook input priority 0;
13 icmp type { echo-request, echo-reply } log group 2 accept
17 type filter hook output priority 0; policy accept;
18 icmp type { echo-request, echo-reply } log group 2 accept
22 type filter hook forward priority 0; policy drop;
31 logfile = "/var/log/ulogd.log";
33 "log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU"
34 "log1:NFLOG,base1:BASE,pcap1:PCAP"
42 file = "/var/log/ulogd.pcap";
47 file = "/var/log/ulogd_pkts.log";
52 environment.systemPackages = with pkgs; [ tcpdump ];
55 testScript = lib.readFile ./ulogd.py;