With WireGuard and NetworkManager
WireGuard is a simple and modern VPN protocol. We recommend using it when available.
On many distributions, it is now integrated into NetworkManager. If this method is not available, try the next section.
- Make sure you have the relevant packages installed as indicated by the official WireGuard website.
-
Create a new WireGuard key in your account and download the configuration file.
You need one for each device that you want to associate with your account. -
Import the configuration in NetworkManager:
- Open your connection manager, usually by right-clicking the network status icon or going into your system settings.
- Create a new connection and select "Import VPN connection" or "Import saved VPN configuration"
- Select the file you have previously downloaded.
-
It should have already been activated after importing. If not, activate it now.
You can check your IP address by refreshing this page (or opening it on the device) and looking at the bottom. - To start on boot, edit your primary connection and check "Automatically connect to VPN".
With WireGuard and systemd
If you do not have NetworkManager or prefer not to use it, WireGuard can also be started by systemd or managed manually with wg-quick.
- Make sure you have the relevant packages installed as indicated by the official WireGuard website.
-
Create a new WireGuard key in your account and download the configuration file.
You need one for each device that you want to associate with your account. -
Place the configuration file in
/etc/wireguard.
Then, start it with the following command:sudo wg-quick up ccvpn-fr - You can check your IP address by refreshing this page (or opening it on the device) and looking at the bottom.
-
If you have systemd, you can start it as a service instead:
sudo wg-quick down ccvpn-frAnd make the service start on boot:
sudo systemctl start wg-quick@ccvpn-frsudo systemctl enable wg-quick@ccvpn-fr
With OpenVPN and NetworkManager
OpenVPN is an older VPN protocol and software, still considered secure and one of the best VPN protocols available. This guide focuses on its integration with NetworkManager. If you are not using NetworkManager, skip to the next guide.
-
Install the required packages:
-
Debian:
sudo apt-get install openvpn resolvconf network-manager-openvpn network-manager-openvpn-gnome -
Fedora:
sudo yum install openvpn networkmanager-openvpn -
Arch:
sudo pacman -S openvpn networkmanager-openvpn
-
Debian:
-
You will also need our CA certificate, available here: https://vpn.ccrypto.org/ca.crt
You can right click on that link and save the file, it will be required to connect. - Create a new connection and choose the type OpenVPN.
-
You will need to fill in the following VPN configuration:
-
Tab VPN
- Gateway: Pick one in the server list.
- Type: Password
- User name and Password: The same as on this site.
- CA certificate: The ca.crt file downloaded in the previous step.
-
Tab VPN, click on Advanced, then the first General tab
- Use custom gateway port: It should be checked and set to 1196.
- Use a TCP connection: It should be unchecked to use the fastest UDP mode. If you have issues connecting, you can try setting the port to 443 and checking this option.
- Randomize remote hosts: It should be checked.
- IPv6 tun link: It should be checked unless you get IPv6-related issues.
-
Tab VPN
- Save the new connection and connect to it.
With OpenVPN and systemd
-
Install the required packages:
-
Debian:
sudo apt-get install openvpn resolvconf -
Fedora:
sudo yum install openvpn -
Arch:
sudo pacman -S openvpn openresolv
-
Debian:
-
You will also need our CA certificate, available here: https://vpn.ccrypto.org/ca.crt
You can right click on that link and save the file or wget it later, it will be required to connect. -
In your account, download a .ovpn configuration file, and copy it into
/etc/openvpnwith a .conf extension.
Keep the name simple, as it will be used in a systemd service name.
If you downloaded multiple config files as an archive, extract it so that the individual .ovpn files are directly in the/etc/openvpnfolder, and rename them to .conf. -
Start the OpenVPN services:
sudo systemctl start openvpn@ccrypto-fr.service -
(Optional) Save your username and password:
-
Create a text file in
/etc/openvpncontaining your username and password on two lines as follows:Alice
p4ssw0rd -
For additional security, only allow root to access this file:
sudo chown root:root /path/to/the/file.txt sudo chmod 600 /path/to/the/file.txt -
Then, open the .conf file with a text editor (nano, vim, gedit, ...) and add this line at the end of the file:
auth-user-pass /path/to/the/file.txt - Reconnect and it should not ask for your password.
-
To start it on boot, use this:
sudo systemctl enable openvpn@ccrypto-fr.service
-
Create a text file in