nixbot

builds

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

1additionally exposed symbols:2 machine, router,3 start_all, machines, driver, Machine, wait_for_signal4Starting machine5Starting router67891011<<< NixOS Stage 2 >>>1213booting system configuration /nix/store/awhn8mwn175d0nk64r54ah073a3b3kha-nixos-system-machine-test14running activation script...15setting up /etc...162: host0@if3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100017 link/ether 0e:74:26:22:81:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 018starting systemd...19systemd 261.1 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)20Detected virtualization systemd-nspawn.21Detected architecture arm64.22Detected first boot.23Initializing machine ID from container UUID.24Applying preset policy.25Populated /etc with preset unit settings.26Queued start job for default target Multi-User System.27282930<<< Welcome to NixOS test (aarch64) - console >>>31+ systemd-run /bin/sh -c '/nix/store/p79fmimbb698sv4c135kbdwlhjcqpd3p-coreutils-9.11/bin/sleep 999999999 && echo 81654400-5667-4320-9fc3-9aa00f5efa25'32Running as unit: run-p226-i82422042.service; invocation ID: e368d8c25df643b29750be03164f065c33To attach to container machine run on the same machine that runs the test:34 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*81654400-5667-4320-9fc3-9aa00f5efa25') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 3536To inject external network and continue test, run:37sudo /nix/store/41m77i1296n33p6liin8ynr6wh3h6b7m-python3-3.14.6/bin/python3.14 /nix/store/fz2xjd9j3lyn06n25cxv0zl74vhk4f32-test-driver-0.0.1/lib/python3.14/site-packages/test_driver/inject_network.py 81654400-5667-4320-9fc3-9aa00f5efa253839<<< NixOS Stage 2 >>>4041booting system configuration /nix/store/aa9waacy0p3vvzdzpb99dyhzx9ydcdw9-nixos-system-router-test42running activation script...43setting up /etc...442: host0@if4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100045 link/ether a6:24:31:fe:b9:6d brd ff:ff:ff:ff:ff:ff link-netnsid 046starting systemd...47systemd 261.1 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)48Detected virtualization systemd-nspawn.49Detected architecture arm64.50Detected first boot.51Initializing machine ID from container UUID.52Applying preset policy.53Populated /etc with preset unit settings.54Queued start job for default target Multi-User System.55565758<<< Welcome to NixOS test (aarch64) - console >>>59+ systemd-run /bin/sh -c '/nix/store/p79fmimbb698sv4c135kbdwlhjcqpd3p-coreutils-9.11/bin/sleep 999999999 && echo 6e38da47-9e91-42e4-9a31-f6adbf3627a8'60Running as unit: run-p209-i82422080.service; invocation ID: 852bd01cab6144b3b33240a2bff6933b61To attach to container router run on the same machine that runs the test:62 sudo nsenter --user --target $(\pgrep -f '^/bin/sh.*6e38da47-9e91-42e4-9a31-f6adbf3627a8') --mount --uts --ipc --net --pid --cgroup /bin/sh -c bash 6364To inject external network and continue test, run:65sudo /nix/store/41m77i1296n33p6liin8ynr6wh3h6b7m-python3-3.14.6/bin/python3.14 /nix/store/fz2xjd9j3lyn06n25cxv0zl74vhk4f32-test-driver-0.0.1/lib/python3.14/site-packages/test_driver/inject_network.py 6e38da47-9e91-42e4-9a31-f6adbf3627a866+ systemctl --no-pager show multi-user.target67+ systemctl --no-pager show nginx.service68+ systemctl --no-pager show multi-user.target69+ systemctl --no-pager show nginx.service70+ ip -4 addr show eth171+ grep -oP '(?<=inet\s)\d+(\.\d+){3}'72+ ip -6 addr show eth173+ grep -oP '(?<=inet6\s)[0-9a-f:]+'74+ grep -v '^fe80'75+ head -176Router IPv4: 192.168.1.277Router IPv6: 2001:db8:1::278+ systemctl restart nftables79+ systemctl --no-pager show nftables.service80+ nft list table inet user-firewall81table inet user-firewall {82 chain output {83 type filter hook output priority filter; policy accept;84 oifname "lo" counter packets 0 bytes 0 accept comment "allow lo"85 oifname "tun*" counter packets 0 bytes 0 accept comment "allow tun*"86 oifname "tap*" counter packets 0 bytes 0 accept comment "allow tap*"87 oifname "wg*" counter packets 0 bytes 0 accept comment "allow wg*"88 oifname "tailscale*" counter packets 0 bytes 0 accept comment "allow tailscale*"89 oifname "zt*" counter packets 0 bytes 0 accept comment "allow zt*"90 oifname "vpn*" counter packets 0 bytes 0 accept comment "allow vpn*"91 oifname "ipsec*" counter packets 0 bytes 0 accept comment "allow ipsec*"92 oifname "nebula*" counter packets 0 bytes 0 accept comment "allow nebula*"93 oifname "tinc*" counter packets 0 bytes 0 accept comment "allow tinc*"94 oifname "edge*" counter packets 0 bytes 0 accept comment "allow edge*"95 oifname "hyprspace" counter packets 0 bytes 0 accept comment "allow hyprspace"96 oifname "ham0" counter packets 0 bytes 0 accept comment "allow ham0"97 oifname "easytier" counter packets 0 bytes 0 accept comment "allow easytier"98 oifname "mycelium" counter packets 0 bytes 0 accept comment "allow mycelium"99 meta skuid 1002 counter packets 0 bytes 0 reject comment "blocked user bob"100 }101}102machine: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080103+ runuser -u alice -- curl -s http://127.0.0.1:8080104+ runuser -u alice -- curl -s http://127.0.0.1:8080105(finished: waiting for success: runuser -u alice -- curl -s http://127.0.0.1:8080, in 1.04 seconds)106+ runuser -u alice -- curl -s http://192.168.1.2107+ runuser -u alice -- curl -s 'http://[2001:db8:1::2]'108+ runuser -u bob -- curl -s http://127.0.0.1:8080109+ runuser -u bob -- curl -s --connect-timeout 2 http://192.168.1.2110+ echo EXIT_CODE=7111+ runuser -u bob -- curl -s --connect-timeout 2 'http://[2001:db8:1::2]'112+ echo EXIT_CODE=7113+ nft list table inet user-firewall114+ systemctl --no-pager show setup-wg0-interface.service115+ systemctl --no-pager show nginx.service116machine: waiting for success: nc -z 10.100.0.2 8081117+ nc -z 10.100.0.2 8081118Connection to 10.100.0.2 8081 port [tcp/sunproxyadmin] succeeded!119(finished: waiting for success: nc -z 10.100.0.2 8081, in 0.01 seconds)120+ ip link show wg0121+ ip addr show wg0122+ runuser -u alice -- curl -s --interface wg0 http://10.100.0.2:8081/123+ runuser -u alice -- curl -s --interface wg0 'http://[fd00::2]:8081/'124+ runuser -u bob -- curl -s --interface wg0 http://10.100.0.2:8081/125+ runuser -u bob -- curl -s --interface wg0 'http://[fd00::2]:8081/'126+ nft list table inet user-firewall127+ grep -E 'oifname.*wg'128 oifname "wg*" counter packets 1 bytes 56 accept comment "allow wg*"129130