1 import ./make-test-python.nix ({ pkgs, lib, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ fpletz ];
8 upstream = { pkgs, ... }: {
9 environment.systemPackages = [ pkgs.tcpdump ];
10 networking.useDHCP = false;
11 networking.interfaces = {
14 { address = "fd23::1"; prefixLength = 112; }
24 server = { pkgs, ... }: {
25 boot.kernel.sysctl = {
26 "net.ipv6.conf.all.forwarding" = "1";
27 "net.ipv6.conf.default.forwarding" = "1";
29 environment.systemPackages = [ pkgs.tcpdump ];
30 networking.useDHCP = false;
31 networking.interfaces = {
34 { address = "fd23::2"; prefixLength = 112; }
40 proxies.eth1.rules."fd42::/112" = {};
44 privateNetwork = true;
45 hostAddress = "192.168.255.1";
46 localAddress = "192.168.255.2";
47 hostAddress6 = "fd42::1";
48 localAddress6 = "fd42::2";
56 server.wait_for_unit("multi-user.target")
57 upstream.wait_for_unit("multi-user.target")
58 upstream.wait_until_succeeds("ping -c5 fd42::2")