Enable and disable write filter on sockets.