nixbot

builds

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

1build01: building iz46gvqlyxdc723m08ppkj6127b6b676-container-test-run-user-firewall-nftables.drv2additionally exposed symbols:3 machine, router,4 start_all, machines, driver, Machine, wait_for_signal5Starting machine6Starting router7░ Spawning container machine on /build/tmp79e8dx86/machine.8░ Spawning container router on /build/tmp79e8dx86/router.910<<< NixOS Stage 2 >>>1112booting system configuration /nix/store/iy91ks1n1whzrw004y9swf40qp448ish-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/f2jmqpvrz2d2m3iw9i9zjkggh4na5jcs-coreutils-9.11/bin/sleep 999999999 && echo 61ef0dde-65a6-4ae8-b8b4-a0fbbcde2d8a'31Running as unit: run-p219-i3640884.service; invocation ID: 18d966868ee649db80c6a7cb2f1c754232To attach to container machine run on the same machine that runs the test:33 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*61ef0dde-65a6-4ae8-b8b4-a0fbbcde2d8a') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 3435To inject external network and continue test, run:36sudo /nix/store/vilynzly1pyhawy04ljmrp7n9ffr24qy-python3-3.13.17/bin/python3.13 /nix/store/m62gfs0zqp5x12s38whnz77aij2gavg7-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py 61ef0dde-65a6-4ae8-b8b4-a0fbbcde2d8a3738<<< NixOS Stage 2 >>>3940booting system configuration /nix/store/p9ii1lm9d0b203ggxa83jqqcacqc2jyp-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/f2jmqpvrz2d2m3iw9i9zjkggh4na5jcs-coreutils-9.11/bin/sleep 999999999 && echo 9cd2e4a6-de79-412a-98d8-ccd12c1a1281'59Running as unit: run-p202-i3640909.service; invocation ID: ef52d0c8b57b43f4bc04a6037e2fc8fb60To attach to container router run on the same machine that runs the test:61 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*9cd2e4a6-de79-412a-98d8-ccd12c1a1281') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 6263To inject external network and continue test, run:64sudo /nix/store/vilynzly1pyhawy04ljmrp7n9ffr24qy-python3-3.13.17/bin/python3.13 /nix/store/m62gfs0zqp5x12s38whnz77aij2gavg7-test-driver-0.0.1/lib/python3.13/site-packages/test_driver/inject_network.py 9cd2e4a6-de79-412a-98d8-ccd12c1a128165+ systemctl --no-pager show multi-user.target66+ systemctl list-jobs --full67+ systemctl --no-pager show multi-user.target68+ systemctl --no-pager show nginx.service69+ systemctl --no-pager show multi-user.target70+ systemctl list-jobs --full71+ systemctl --no-pager show multi-user.target72+ systemctl --no-pager show nginx.service73+ ip -4 addr show eth174+ grep -oP '(?<=inet\s)\d+(\.\d+){3}'75+ ip -6 addr show eth176+ grep -oP '(?<=inet6\s)[0-9a-f:]+'77+ grep -v '^fe80'78+ head -179Router IPv4: 192.168.1.280Router IPv6: 2001:db8:1::281+ systemctl restart nftables82+ systemctl --no-pager show nftables.service83+ nft list table inet user-firewall84table inet user-firewall {85 chain output {86 type filter hook output priority filter; policy accept;87 oifname "lo" counter packets 0 bytes 0 accept comment "allow lo"88 oifname "tun*" counter packets 0 bytes 0 accept comment "allow tun*"89 oifname "tap*" counter packets 0 bytes 0 accept comment "allow tap*"90 oifname "wg*" counter packets 0 bytes 0 accept comment "allow wg*"91 oifname "tailscale*" counter packets 0 bytes 0 accept comment "allow tailscale*"92 oifname "zt*" counter packets 0 bytes 0 accept comment "allow zt*"93 oifname "vpn*" counter packets 0 bytes 0 accept comment "allow vpn*"94 oifname "ipsec*" counter packets 0 bytes 0 accept comment "allow ipsec*"95 oifname "nebula*" counter packets 0 bytes 0 accept comment "allow nebula*"96 oifname "tinc*" counter packets 0 bytes 0 accept comment "allow tinc*"97 oifname "edge*" counter packets 0 bytes 0 accept comment "allow edge*"98 oifname "hyprspace" counter packets 0 bytes 0 accept comment "allow hyprspace"99 oifname "ham0" counter packets 0 bytes 0 accept comment "allow ham0"100 oifname "easytier" counter packets 0 bytes 0 accept comment "allow easytier"101 oifname "mycelium" counter packets 0 bytes 0 accept comment "allow mycelium"102 meta skuid 1002 counter packets 0 bytes 0 reject comment "blocked user bob"103 }104}105machine: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080106+ runuser -u alice -- curl -s http://127.0.0.1:8080107+ runuser -u alice -- curl -s http://127.0.0.1:8080108+ runuser -u alice -- curl -s http://127.0.0.1:8080109+ runuser -u alice -- curl -s http://127.0.0.1:8080110+ runuser -u alice -- curl -s http://127.0.0.1:8080111+ runuser -u alice -- curl -s http://127.0.0.1:8080112+ runuser -u alice -- curl -s http://127.0.0.1:8080113(finished: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080, in 6.15 seconds)114+ runuser -u alice -- curl -s http://192.168.1.2115+ runuser -u alice -- curl -s 'http://[2001:db8:1::2]'116+ runuser -u bob -- curl -s http://127.0.0.1:8080117+ runuser -u bob -- curl -s --connect-timeout 2 http://192.168.1.2118+ echo EXIT_CODE=7119+ runuser -u bob -- curl -s --connect-timeout 2 'http://[2001:db8:1::2]'120+ echo EXIT_CODE=7121+ nft list table inet user-firewall122+ systemctl --no-pager show setup-wg0-interface.service123+ systemctl --no-pager show nginx.service124machine: waiting for success: nc -z 10.100.0.2 8081125+ nc -z 10.100.0.2 8081126Connection to 10.100.0.2 8081 port [tcp/sunproxyadmin] succeeded!127(finished: waiting for success: nc -z 10.100.0.2 8081, in 0.01 seconds)128+ ip link show wg0129+ ip addr show wg0130+ runuser -u alice -- curl -s --interface wg0 http://10.100.0.2:8081/131+ runuser -u alice -- curl -s --interface wg0 'http://[fd00::2]:8081/'132+ runuser -u bob -- curl -s --interface wg0 http://10.100.0.2:8081/133+ runuser -u bob -- curl -s --interface wg0 'http://[fd00::2]:8081/'134+ nft list table inet user-firewall135+ grep -E 'oifname.*wg'136 oifname "wg*" counter packets 1 bytes 56 accept comment "allow wg*"137Container machine terminated by signal KILL.138Container router terminated by signal KILL.