A Model For Network Security