1. A system for applying separate firewall rules to one or more networks connected to a computer comprising: a shared instance of an operating system comprising a shared filter engine and network stack shared by a plurality of virtualized environments on the computer, wherein a subset of a set of firewall rules stored in the filter engine is applied to traffic from or traffic to a network, based on a virtualized environment identifier.