IPsec is used for protecting sensitive data, such as financial transactions, medical records and corporate communications, as it’s transmitted across the network . It’s also used to secure virtual private networks (VPNs), where IPsec tunneling encrypts all data sent between two endpoints.