nixbot

builds

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

1build01: building sg8ndjg64h4ml33zh9zks7f8xcdid6gb-container-test-run-user-firewall-iptables.drv2additionally exposed symbols:3 machine, router,4 start_all, machines, driver, Machine, wait_for_signal5Starting machine6Starting router78910<<< NixOS Stage 2 >>>1112booting system configuration /nix/store/q61nlkhbq7s8cczxpn3x1v6sqzay28ld-nixos-system-machine-test13running activation script...14setting up /etc...152: host0@if4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100016 link/ether 0e:74:26:22:81:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 017starting systemd...18systemd 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)19Detected virtualization systemd-nspawn.20Detected architecture arm64.21Detected first boot.22Initializing machine ID from container UUID.23Applying preset policy.24Populated /etc with preset unit settings.25Queued start job for default target Multi-User System.26272829<<< Welcome to NixOS test (aarch64) - console >>>30+ systemd-run /bin/sh -c '/nix/store/3l7ygqcc6v0rbi9d4j1m6phi6sz86j98-coreutils-9.11/bin/sleep 999999999 && echo 9c7cf06c-380c-4a36-9c94-304b05aff2e1'31Running as unit: run-p345-i6033771.service; invocation ID: 452507b9194f44e2842efd564cd5969032To attach to container machine run on the same machine that runs the test:33 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*9c7cf06c-380c-4a36-9c94-304b05aff2e1') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 3435To inject external network and continue test, run:36sudo /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-304b05aff2e13738<<< NixOS Stage 2 >>>3940booting system configuration /nix/store/gf30rpdy0nrf3f4khnnm4qwph35qwm0f-nixos-system-router-test41running activation script...42setting up /etc...432: host0@if3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100044 link/ether a6:24:31:fe:b9:6d brd ff:ff:ff:ff:ff:ff link-netnsid 045starting systemd...46systemd 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)47Detected virtualization systemd-nspawn.48Detected architecture arm64.49Detected first boot.50Initializing machine ID from container UUID.51Applying preset policy.52Populated /etc with preset unit settings.53Queued start job for default target Multi-User System.54555657<<< Welcome to NixOS test (aarch64) - console >>>58+ systemd-run /bin/sh -c '/nix/store/3l7ygqcc6v0rbi9d4j1m6phi6sz86j98-coreutils-9.11/bin/sleep 999999999 && echo d4bc5b3f-43d3-4a80-b6b2-4477d1a6d8f3'59Running as unit: run-p208-i6033798.service; invocation ID: 8d31cfe83e984b2d970d24f2592efd8560To attach to container router run on the same machine that runs the test:61 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*d4bc5b3f-43d3-4a80-b6b2-4477d1a6d8f3') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 6263To inject external network and continue test, run:64sudo /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-4477d1a6d8f365+ systemctl --no-pager show multi-user.target66+ systemctl --no-pager show nginx.service67+ systemctl --no-pager show multi-user.target68+ systemctl --no-pager show nginx.service69+ grep -oP '(?<=inet\s)\d+(\.\d+){3}'70+ ip -4 addr show eth171+ grep -v '^fe80'72+ head -173+ ip -6 addr show eth174+ grep -oP '(?<=inet6\s)[0-9a-f:]+'75Router IPv4: 192.168.1.276Router IPv6: 2001:db8:1::277+ systemctl restart firewall78+ systemctl --no-pager show firewall.service79+ iptables -L user-firewall-output80Chain user-firewall-output (1 references)81target prot opt source destination 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 96RETURN all -- anywhere anywhere 97REJECT all -- anywhere anywhere owner UID match bob reject-with icmp-port-unreachable98RETURN all -- anywhere anywhere 99machine: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080100+ runuser -u alice -- curl -s http://127.0.0.1:8080101(finished: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080, in 0.07 seconds)102+ runuser -u alice -- curl -s http://192.168.1.2103+ runuser -u alice -- curl -s 'http://[2001:db8:1::2]'104+ runuser -u bob -- curl -s http://127.0.0.1:8080105+ runuser -u bob -- curl -s --connect-timeout 2 http://192.168.1.2106+ echo EXIT_CODE=7107+ runuser -u bob -- curl -s --connect-timeout 2 'http://[2001:db8:1::2]'108+ echo EXIT_CODE=7109+ iptables -L user-firewall-output -n -v110+ ip6tables -L user-firewall-output -n -v111+ systemctl --no-pager show setup-wg0-interface.service112+ systemctl --no-pager show nginx.service113machine: waiting for success: nc -z 10.100.0.2 8081114+ nc -z 10.100.0.2 8081115Connection to 10.100.0.2 8081 port [tcp/sunproxyadmin] succeeded!116(finished: waiting for success: nc -z 10.100.0.2 8081, in 0.03 seconds)117+ ip link show wg0118+ ip addr show wg0119+ runuser -u alice -- curl -s --interface wg0 http://10.100.0.2:8081/120+ runuser -u alice -- curl -s --interface wg0 'http://[fd00::2]:8081/'121+ runuser -u bob -- curl -s --interface wg0 http://10.100.0.2:8081/122+ runuser -u bob -- curl -s --interface wg0 'http://[fd00::2]:8081/'123+ grep -E 'wg0|wg\+'124+ iptables -L user-firewall-output -n -v125 0 0 RETURN all -- * wg+ 0.0.0.0/0 0.0.0.0/0 126127