@@ -11,6 +11,7 @@ let
1111 let
1212 vlanIfs = range 1 (length config.virtualisation.vlans);
1313 in {
14+ environment.systemPackages = [ pkgs.iptables ]; # to debug firewall rules
1415 virtualisation.vlans = [ 1 2 3 ];
1516 boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
1617 networking = {
@@ -320,9 +321,14 @@ let
320321 name = "MACVLAN";
321322 nodes.router = router;
322323 nodes.client = { pkgs, ... }: with pkgs.lib; {
324+ environment.systemPackages = [ pkgs.iptables ]; # to debug firewall rules
323325 virtualisation.vlans = [ 1 ];
324326 networking = {
325327 useNetworkd = networkd;
328+ firewall.logReversePathDrops = true; # to debug firewall rules
329+ # reverse path filtering rules for the macvlan interface seem
330+ # to be incorrect, causing the test to fail. Disable temporarily.
331+ firewall.checkReversePath = false;
326332 firewall.allowPing = true;
327333 useDHCP = true;
328334 macvlans.macvlan.interface = "eth1";
@@ -341,9 +347,16 @@ let
341347 $client->waitUntilSucceeds("ip addr show dev eth1 | grep -q '192.168.1'");
342348 $client->waitUntilSucceeds("ip addr show dev macvlan | grep -q '192.168.1'");
343349
344− # Print diagnosting information
350+ # Print lots of diagnostic information
351+ $router->log('**********************************************');
345352 $router->succeed("ip addr >&2");
353+ $router->succeed("ip route >&2");
354+ $router->execute("iptables-save >&2");
355+ $client->log('==============================================');
346356 $client->succeed("ip addr >&2");
357+ $client->succeed("ip route >&2");
358+ $client->execute("iptables-save >&2");
359+ $client->log('##############################################');
347360
348361 # Test macvlan creates routable ips
349362 $client->waitUntilSucceeds("ping -c 1 192.168.1.1");