On the Way of Protecting MANETs Against Security Threats: A Proactive Approach