Now that we have covered the basics of VPNs, we can discuss how to set up a VPN tunnel. Both peer-to-peer and client-server VPN tunnels will be covered, and, for client-server tunnels, we will discuss how to configure the tunnel from both the server side and the client side. IPsec is the most difficult to configure, and you might not get it to work the first time, whereas OpenVPN and L2TP are somewhat easier.
Configuring a VPN tunnel
IPsec configuration
Depending on your deployment scenario, you may want to configure IPsec as a peer that can connect to or accept a connection from another peer, or you may want to set up IPsec as a server that accepts connections from remote clients. We will cover both cases in this subsection...