Module for managing IPsec