{"id":5055,"date":"2020-02-26T19:45:21","date_gmt":"2020-02-26T16:45:21","guid":{"rendered":"https:\/\/kifarunix.com\/?p=5055"},"modified":"2024-03-14T19:25:02","modified_gmt":"2024-03-14T16:25:02","slug":"configure-strongswan-vpn-client-on-ubuntu-18-04-centos-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/configure-strongswan-vpn-client-on-ubuntu-18-04-centos-8\/","title":{"rendered":"Configure strongSwan VPN Client on Ubuntu 18.04\/CentOS 8"},"content":{"rendered":"\n

Follow through this tutorial to learn how to configure strongSwan<\/a> VPN Client on Ubuntu\/CentOS. Our previous tutorial on provided a step by step guide on how to setup strongSwan VPN server on Debian 10 Buster. <\/p>\n\n\n\n

Follow the link below to learn how to install and setup strongSwan VPN server on Debian 10 Buster.<\/p>\n\n\n\n

Setup IPSEC VPN using StrongSwan on Debian 10<\/a><\/p>\n\n\n\n

Once you have the strongSwan VPN server setup, you can now proceed to test the IP assignment and local connection via the VPN server.<\/p>\n\n\n\n

In this demo, we are using Ubuntu 18.04 and CentOS 8 as our test strongSwan VPN clients.<\/p>\n\n\n\n

Configuring strongSwan VPN Client on Ubuntu\/CentOS<\/h2>\n\n\n\n

Install strongSwan on Ubuntu 18.04<\/h3>\n\n\n\n

strongSwan and extra plugins can be installed on Ubuntu 18.04 by running the command below;<\/p>\n\n\n\n

apt update<\/code><\/pre>\n\n\n\n
apt install strongswan libcharon-extra-plugins<\/code><\/pre>\n\n\n\n

Install strongSwan on CentOS 8<\/h3>\n\n\n\n

strongSwan packages is provided by the EPEL repos on CentOS 8 and similar derivatives. Hence, begin by installing EPEL repos;<\/p>\n\n\n\n

dnf install epel-release<\/code><\/pre>\n\n\n\n
dnf update<\/code><\/pre>\n\n\n\n
dnf install strongswan strongswan-charon-nm<\/code><\/pre>\n\n\n\n

Install strongSwan VPN Server CA certificate on the Client<\/h3>\n\n\n\n

Copy the strongSwan CA certificate generated above<\/strong>, \/etc\/ipsec.d\/cacerts\/vpn_ca_cert.pem<\/code> to the client servers and;<\/p>\n\n\n\n