IPSec is a protocol that provides secure communication between two networks or hosts over an untrusted network, such as the Internet. IPSec uses encryption and authentication to protect the data from eavesdropping, tampering, and replay attacks. IPSec also supports pre-shared key (PSK) as one of the methods for initial authentication between the peers