nixos: Improve inner firewalls
This commit is contained in:
		@@ -155,7 +155,15 @@
 | 
			
		||||
          server.enable = true;
 | 
			
		||||
 | 
			
		||||
          firewall = {
 | 
			
		||||
            trustedInterfaces = [ "base" "vms" ];
 | 
			
		||||
            trustedInterfaces = [ "vms" ];
 | 
			
		||||
            extraRules = ''
 | 
			
		||||
              table inet filter {
 | 
			
		||||
                chain forward {
 | 
			
		||||
                  # Trust that the outer firewall has done the filtering!
 | 
			
		||||
                  iifname base oifname vms accept
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
            '';
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
 
 | 
			
		||||
@@ -117,7 +117,15 @@
 | 
			
		||||
 | 
			
		||||
              firewall = {
 | 
			
		||||
                tcp.allowed = [ 19999 ];
 | 
			
		||||
                trustedInterfaces = [ "vms" "ctrs" ];
 | 
			
		||||
                trustedInterfaces = [ "ctrs" ];
 | 
			
		||||
                extraRules = ''
 | 
			
		||||
                  table inet filter {
 | 
			
		||||
                    chain forward {
 | 
			
		||||
                      # Trust that the outer firewall has done the filtering!
 | 
			
		||||
                      iifname vms oifname ctrs accept
 | 
			
		||||
                    }
 | 
			
		||||
                  }
 | 
			
		||||
                '';
 | 
			
		||||
              };
 | 
			
		||||
 | 
			
		||||
              containers.instances =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user