build01: building sg8ndjg64h4ml33zh9zks7f8xcdid6gb-container-test-run-user-firewall-iptables.drv additionally exposed symbols: machine, router, start_all, machines, driver, Machine, wait_for_signal Starting machine Starting router <<< NixOS Stage 2 >>> booting system configuration /nix/store/q61nlkhbq7s8cczxpn3x1v6sqzay28ld-nixos-system-machine-test running activation script... setting up /etc... 2: host0@if4: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 0e:74:26:22:81:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 0 starting systemd... systemd 260.5 running in system mode (+PAM +AUDIT -SELINUX +APPARMOR +IMA +IPE +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -BTF -XKBCOMMON +UTMP +LIBARCHIVE) Detected virtualization systemd-nspawn. Detected architecture arm64. Detected first boot. Initializing machine ID from container UUID. Applying preset policy. Populated /etc with preset unit settings. Queued start job for default target Multi-User System. <<< Welcome to NixOS test (aarch64) - console >>> + systemd-run /bin/sh -c '/nix/store/3l7ygqcc6v0rbi9d4j1m6phi6sz86j98-coreutils-9.11/bin/sleep 999999999 && echo 9c7cf06c-380c-4a36-9c94-304b05aff2e1' Running as unit: run-p345-i6033771.service; invocation ID: 452507b9194f44e2842efd564cd59690 To attach to container machine run on the same machine that runs the test: sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*9c7cf06c-380c-4a36-9c94-304b05aff2e1') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash To inject external network and continue test, run: sudo /nix/store/q1khrhbn506imjxx7kiqcbihycawa6kl-python3-3.13.15/bin/python3.13 /nix/store/gvgmxwdx1p2q00qm4j8278f9yv9m1f6h-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py 9c7cf06c-380c-4a36-9c94-304b05aff2e1 <<< NixOS Stage 2 >>> booting system configuration /nix/store/gf30rpdy0nrf3f4khnnm4qwph35qwm0f-nixos-system-router-test running activation script... setting up /etc... 2: host0@if3: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether a6:24:31:fe:b9:6d brd ff:ff:ff:ff:ff:ff link-netnsid 0 starting systemd... systemd 260.5 running in system mode (+PAM +AUDIT -SELINUX +APPARMOR +IMA +IPE +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -BTF -XKBCOMMON +UTMP +LIBARCHIVE) Detected virtualization systemd-nspawn. Detected architecture arm64. Detected first boot. Initializing machine ID from container UUID. Applying preset policy. Populated /etc with preset unit settings. Queued start job for default target Multi-User System. <<< Welcome to NixOS test (aarch64) - console >>> + systemd-run /bin/sh -c '/nix/store/3l7ygqcc6v0rbi9d4j1m6phi6sz86j98-coreutils-9.11/bin/sleep 999999999 && echo d4bc5b3f-43d3-4a80-b6b2-4477d1a6d8f3' Running as unit: run-p208-i6033798.service; invocation ID: 8d31cfe83e984b2d970d24f2592efd85 To attach to container router run on the same machine that runs the test: sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*d4bc5b3f-43d3-4a80-b6b2-4477d1a6d8f3') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash To inject external network and continue test, run: sudo /nix/store/q1khrhbn506imjxx7kiqcbihycawa6kl-python3-3.13.15/bin/python3.13 /nix/store/gvgmxwdx1p2q00qm4j8278f9yv9m1f6h-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py d4bc5b3f-43d3-4a80-b6b2-4477d1a6d8f3 + systemctl --no-pager show multi-user.target + systemctl --no-pager show nginx.service + systemctl --no-pager show multi-user.target + systemctl --no-pager show nginx.service + grep -oP '(?<=inet\s)\d+(\.\d+){3}' + ip -4 addr show eth1 + grep -v '^fe80' + head -1 + ip -6 addr show eth1 + grep -oP '(?<=inet6\s)[0-9a-f:]+' Router IPv4: 192.168.1.2 Router IPv6: 2001:db8:1::2 + systemctl restart firewall + systemctl --no-pager show firewall.service + iptables -L user-firewall-output Chain user-firewall-output (1 references) target prot opt source destination RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere RETURN all -- anywhere anywhere REJECT all -- anywhere anywhere owner UID match bob reject-with icmp-port-unreachable RETURN all -- anywhere anywhere machine: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080 + runuser -u alice -- curl -s http://127.0.0.1:8080 (finished: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080, in 0.07 seconds) + runuser -u alice -- curl -s http://192.168.1.2 + runuser -u alice -- curl -s 'http://[2001:db8:1::2]' + runuser -u bob -- curl -s http://127.0.0.1:8080 + runuser -u bob -- curl -s --connect-timeout 2 http://192.168.1.2 + echo EXIT_CODE=7 + runuser -u bob -- curl -s --connect-timeout 2 'http://[2001:db8:1::2]' + echo EXIT_CODE=7 + iptables -L user-firewall-output -n -v + ip6tables -L user-firewall-output -n -v + systemctl --no-pager show setup-wg0-interface.service + systemctl --no-pager show nginx.service machine: waiting for success: nc -z 10.100.0.2 8081 + nc -z 10.100.0.2 8081 Connection to 10.100.0.2 8081 port [tcp/sunproxyadmin] succeeded! (finished: waiting for success: nc -z 10.100.0.2 8081, in 0.03 seconds) + ip link show wg0 + ip addr show wg0 + runuser -u alice -- curl -s --interface wg0 http://10.100.0.2:8081/ + runuser -u alice -- curl -s --interface wg0 'http://[fd00::2]:8081/' + runuser -u bob -- curl -s --interface wg0 http://10.100.0.2:8081/ + runuser -u bob -- curl -s --interface wg0 'http://[fd00::2]:8081/' + grep -E 'wg0|wg\+' + iptables -L user-firewall-output -n -v 0 0 RETURN all -- * wg+ 0.0.0.0/0 0.0.0.0/0