FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway

When running Nginx as a reverse proxy to Jenkins on CentOS, a 502 error may occur. Nginx error log will be as follows: 2020/05/07 13:32:33 [crit] 9665#9665: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 1.2.3.4, server: jenkins.artem.services, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "jenkins.artem.services"   Solution: Reason SELinux. … Continue reading "FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway"

CentOS 7 – Jenkins install

Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let’s install it.   To add the Jenkins repository, you will need the "wget" utility, if it is not installed, then install:   Add the repository and import its key:   Install Jenkins:   … Continue reading "CentOS 7 – Jenkins install"

 Ansible Playbook – Install Docker on CentOS 7

The following example was taken as a Playbook. This Playbook runs on the "docker" host group, installs the necessary packages for Docker, adds the Docker repository, installs Docker, launches it and adds it to autorun. Also adds the user "artem" to the group "docker"   docker.yaml   Apply Playbook:

OpenVPN – Selective traffic (mail.ru, yandex.ru, vk.com, ok.ru, kaspersky.ru)

Goal: Only allow networks that fall under the ban through a VPN, the rest should go directly. The convenience of connecting devices, cross-platform, speed and security are also important. All steps were performed on CentOS 7. Install the EPEL repository if it is not already in the system and install the necessary packages: Create a … Continue reading "OpenVPN – Selective traffic (mail.ru, yandex.ru, vk.com, ok.ru, kaspersky.ru)"

OpenVPN – All traffic through VPN

Goal: Allow traffic from any device via VPN. The maximum convenience is connecting new devices without creating accounts, creating passwords, etc. Fast and encrypted connection. All steps were performed on CentOS 7. Install the EPEL repository if it is not already in the system and install the necessary packages: Create a configuration file:

OpenVPN – Site-to-Site

Goal: Link 2 remote nodes in between so that communication between them is "transparent". Channel stability, speed and, of course, safety are also important. Imagine that there are 2 nodes: Server – IP 1.1.1.1 Client – IP 2.2.2.2 Install OpenVPN on them CentOS: Ubuntu: