Filtering Network Traffic Based on Protocol Encapsulation Rules