{% extends 'pages/_install_base.html' %} {% load i18n %} {% load dltags %} {% block pagetitle %} {% trans "Install on Linux" %} {% endblock %} {% block wireguard_import %} {% blocktrans trimmed %} Place the configuration file in /etc/wireguard. {% endblocktrans %}
{% trans "Then, start it with the following command:" %} sudo wg-quick ccvpn-fr up {% endblock %} {% block wireguard_activate %} {% trans "You can check your IP address by refreshing this page (or opening it on the device) and looking at the bottom."%} {% endblock %} {% block openvpn_outer %}

{% trans "With OpenVPN and NetworkManager" %}

OpenVPN {% blocktrans trimmed %} is an older VPN protocol and software, still considered secure and one of the best VPN protocols available. {% endblocktrans %} {% blocktrans trimmed %} This guide focuses on its integration with NetworkManager. If you are not using NetworkManager, skip to the next guide. {% endblocktrans %}


  1. {% trans "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
  2. {% trans "You will also need our CA certificate, available here:" %} https://vpn.ccrypto.org/ca.crt
    {% blocktrans trimmed %} You can right click on that link and save the file, it will be required to connect. {% endblocktrans %}
  3. {% trans "Create a new connection and choose the type OpenVPN." %}
  4. {% trans "You will need to fill in the following VPN configuration:" %}
    • {% trans "Tab VPN" %}
      • {% trans "Gateway" %}: {% blocktrans trimmed with url="/status" gw="gw.random.204vpn.net" %} Pick one in the server list, or {{gw}} for a random server. {% endblocktrans %}
      • {% trans "Type" %}: {% trans "Password" %}
      • {% trans "User name and Password" %}: {% trans "The same as on this site." %}
      • {% trans "CA certificate" %}: {% trans "The ca.crt file downloaded in the previous step." %}
    • {% trans "Tab VPN, click on Advanced, then the first General tab" %}
      • {% trans "Use custom gateway port" %}: {% trans "It should be checked and set to 1196." %}
      • {% trans "Use a TCP connection" %}: {% trans "It should be unchecked to use the fastest UDP mode." %} {% trans "If you have issues connecting, you can try setting the port to 443 and checking this option." %}
      • {% trans "Randomize remote hosts" %}: {% trans "It should be checked." %}
      • {% trans "IPv6 tun link" %}: {% trans "It should be checked unless you get IPv6-related issues." %}
  5. {% trans "Save the new connection and connect to it." %}

{% trans "With OpenVPN and systemd" %}

  1. {% trans "Install the required packages:" %}
    • Debian: sudo apt-get install openvpn resolvconf
    • Fedora: sudo yum install openvpn
    • Arch: sudo pacman -S openvpn openresolv
  2. {% trans "You will also need our CA certificate, available here:" %} https://vpn.ccrypto.org/ca.crt
    {% blocktrans trimmed %} You can right click on that link and save the file or wget it later, it will be required to connect. {% endblocktrans %}
  3. {% blocktrans trimmed %} In your account, download a .ovpn configuration file, and copy it into /etc/openvpn with a .conf extension.
    Keep the name simple, as it will be used in a systemd service name. {% endblocktrans %}
    {% blocktrans trimmed %} If you downloaded multiple config files as an archive, extract it so that the individual .ovpn files are directly in the /etc/openvpn folder, and rename them to .conf. {% endblocktrans %}
  4. {% trans "Start the OpenVPN services:" %} sudo systemctl start openvpn@ccrypto-fr.service
  5. {% trans "(Optional) Save your username and password:" %}
    • {% blocktrans trimmed %} Create a text file in /etc/openvpn containing your username and password on two lines as follows: {% endblocktrans %} Alice
      p4ssw0rd
    • {% blocktrans trimmed %} For additional security, only allow root to access this file: {% endblocktrans %} sudo chown root:root /path/to/the/file.txt sudo chmod 600 /path/to/the/file.txt
    • {% blocktrans trimmed %} Then, open the .conf file with a text editor (nano, vim, gedit, ...) and add this line at the end of the file: {% endblocktrans %} auth-user-pass /path/to/the/file.txt
    • {% trans "Reconnect and it should not ask for your password." %}
    • {% trans "To start it on boot, use this:" %} sudo systemctl enable openvpn@ccrypto-fr.service
{% endblock %}