nixbot

builds

succeeded container-test-run-user-firewall-iptables checks.aarch64-linux.nixos-test-user-firewall-iptables · build #517 · raw

1additionally exposed symbols:2 machine, router,3 start_all, machines, driver, Machine, wait_for_signal4Starting machine5Starting router6789<<< NixOS Stage 2 >>>1011booting system configuration /nix/store/2xxb8svhfrsmz8zf2x1j7wybds4jdw2k-nixos-system-machine-test12running activation script...13setting up /etc...142: host0@if3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100015 link/ether 0e:74:26:22:81:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 016starting systemd...17systemd 260.2 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)18Detected virtualization systemd-nspawn.19Detected architecture arm64.20Detected first boot.21Initializing machine ID from container UUID.22Applying preset policy.23Populated /etc with preset unit settings.24Queued start job for default target Multi-User System.25262728<<< Welcome to NixOS test (aarch64) - console >>>29+ systemd-run /bin/sh -c '/nix/store/hlc4nqfx0l06f6p7z7lmd77qcwszi7wc-coreutils-9.11/bin/sleep 999999999 && echo 26f3d5b5-4828-4ec5-8e8e-8ad2fa2d7e45'30Running as unit: run-p345-i110389694.service; invocation ID: 47dbfeb52bdf4c6fa92a6369ab28530331To attach to container machine run on the same machine that runs the test:32 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*26f3d5b5-4828-4ec5-8e8e-8ad2fa2d7e45') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 3334To inject external network and continue test, run:35sudo /nix/store/d6kq2phq0zy5invmkfgg8h35zxaf13s9-python3-3.13.15/bin/python3.13 /nix/store/wy9v05zzgwxzcw42lgb2d7v336cgn0c6-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py 26f3d5b5-4828-4ec5-8e8e-8ad2fa2d7e453637<<< NixOS Stage 2 >>>3839booting system configuration /nix/store/f7cc5macrfjpg2dkp2rz09aibng7rvbh-nixos-system-router-test40running activation script...41setting up /etc...422: host0@if4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100043 link/ether a6:24:31:fe:b9:6d brd ff:ff:ff:ff:ff:ff link-netnsid 044starting systemd...45systemd 260.2 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)46Detected virtualization systemd-nspawn.47Detected architecture arm64.48Detected first boot.49Initializing machine ID from container UUID.50Applying preset policy.51Populated /etc with preset unit settings.52Queued start job for default target Multi-User System.53545556<<< Welcome to NixOS test (aarch64) - console >>>57+ systemd-run /bin/sh -c '/nix/store/hlc4nqfx0l06f6p7z7lmd77qcwszi7wc-coreutils-9.11/bin/sleep 999999999 && echo 79c0c391-c85e-44f1-b82c-e5a2a4ccd365'58Running as unit: run-p208-i110389725.service; invocation ID: 430599aa2698463d9e3250a4d70b5e3559To attach to container router run on the same machine that runs the test:60 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*79c0c391-c85e-44f1-b82c-e5a2a4ccd365') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 6162To inject external network and continue test, run:63sudo /nix/store/d6kq2phq0zy5invmkfgg8h35zxaf13s9-python3-3.13.15/bin/python3.13 /nix/store/wy9v05zzgwxzcw42lgb2d7v336cgn0c6-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py 79c0c391-c85e-44f1-b82c-e5a2a4ccd36564+ systemctl --no-pager show multi-user.target65+ systemctl --no-pager show nginx.service66+ systemctl --no-pager show multi-user.target67+ systemctl --no-pager show nginx.service68+ ip -4 addr show eth169+ grep -oP '(?<=inet\s)\d+(\.\d+){3}'70+ ip -6 addr show eth171+ grep -oP '(?<=inet6\s)[0-9a-f:]+'72+ grep -v '^fe80'73+ head -174Router IPv4: 192.168.1.275Router IPv6: 2001:db8:1::276+ systemctl restart firewall77+ systemctl --no-pager show firewall.service78+ iptables -L user-firewall-output79Chain user-firewall-output (1 references)80target prot opt source destination 81RETURN all -- anywhere anywhere 82RETURN all -- anywhere anywhere 83RETURN all -- anywhere anywhere 84RETURN all -- anywhere anywhere 85RETURN all -- anywhere anywhere 86RETURN all -- anywhere anywhere 87RETURN all -- anywhere anywhere 88RETURN all -- anywhere anywhere 89RETURN all -- anywhere anywhere 90RETURN all -- anywhere anywhere 91RETURN all -- anywhere anywhere 92RETURN all -- anywhere anywhere 93RETURN all -- anywhere anywhere 94RETURN all -- anywhere anywhere 95RETURN all -- anywhere anywhere 96REJECT all -- anywhere anywhere owner UID match bob reject-with icmp-port-unreachable97RETURN all -- anywhere anywhere 98machine: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:808099+ runuser -u alice -- curl -s http://127.0.0.1:8080100(finished: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080, in 0.02 seconds)101+ runuser -u alice -- curl -s http://192.168.1.2102+ runuser -u alice -- curl -s 'http://[2001:db8:1::2]'103+ runuser -u bob -- curl -s http://127.0.0.1:8080104+ runuser -u bob -- curl -s --connect-timeout 2 http://192.168.1.2105+ echo EXIT_CODE=7106+ runuser -u bob -- curl -s --connect-timeout 2 'http://[2001:db8:1::2]'107+ echo EXIT_CODE=7108+ iptables -L user-firewall-output -n -v109+ ip6tables -L user-firewall-output -n -v110+ systemctl --no-pager show setup-wg0-interface.service111+ systemctl --no-pager show nginx.service112machine: waiting for success: nc -z 10.100.0.2 8081113+ nc -z 10.100.0.2 8081114Connection to 10.100.0.2 8081 port [tcp/sunproxyadmin] succeeded!115(finished: waiting for success: nc -z 10.100.0.2 8081, in 0.01 seconds)116+ ip link show wg0117+ ip addr show wg0118+ runuser -u alice -- curl -s --interface wg0 http://10.100.0.2:8081/119+ runuser -u alice -- curl -s --interface wg0 'http://[fd00::2]:8081/'120+ runuser -u bob -- curl -s --interface wg0 http://10.100.0.2:8081/121+ runuser -u bob -- curl -s --interface wg0 'http://[fd00::2]:8081/'122+ iptables -L user-firewall-output -n -v123+ grep -E 'wg0|wg\+'124 0 0 RETURN all -- * wg+ 0.0.0.0/0 0.0.0.0/0 125126