Skip to content

Instantly share code, notes, and snippets.

View luiscbr92's full-sized avatar

Luis Alberto Centeno luiscbr92

  • Cloudlfight
  • Linz, Austria
View GitHub Profile
@luiscbr92
luiscbr92 / Configure Raspberry Pi as routed wireless AP.md
Last active July 7, 2021 17:34
Configure Raspberry Pi as routed wireless AP

Configure Raspberry Pi as routed wireless AP

This Gist is a guide on how to set up a Raspberry Pi as a wireless access point. This could be done on Raspberry Pi 4, 3 or Zero W as they include a wireless module. For other Raspberry Pi models it could be also done by using a compatible wireless dongle.

Before starting, you should check yours LAN network configuration. This guide assumes that your LAN network is 192.168.0.0/24 and the Pi will manage 192.168.10.0/24.

I'm using Raspberry Pi OS with the latest updates installed.

Install required packages

@luiscbr92
luiscbr92 / Connect Raspberry Pi to OpenVPN server at boot time.md
Last active December 30, 2025 06:08
Connect Raspberry Pi to OpenVPN server at boot time

Connect Raspberry Pi to OpenVPN server at boot time

This Gist will guide you through the steps to connect the Raspberry Pi to a OpenVPN server. As a further step I will explain how to connect to the OpenVPN server automatically at boot time.

During this guide I'm using Raspberry Pi OS with the latest updates already installed. I will use the CLI client of OpenVPN

As a prerrequisite, we should create an OpenVPN profile in the VPN server, which results in having a file named like client.ovpn.

⚠️ Important: you should create an auto-login profile that requires no passphrase in order to connect to the VPN at boot time. ⚠️

@luiscbr92
luiscbr92 / Install OpenVPN server on Raspberry Pi with PiVPN.md
Created July 4, 2021 10:34
Install OpenVPN server on Raspberry Pi with PiVPN

Install OpenVPN server on Raspberry Pi with PiVPN

The installation process of OpenVPN server with PiVPN is quite simple. However, there are some prerequisites and recommendations that should be considered before proceeding with the installation.

For this installation I was running Raspberry Pi OS with the latest updates already installed.

Prior tasks before installing

You should make an IP reservation for your Raspberry Pi in your DHCP server. Your PI must have the same IP address always in order to access the VPN server properly. Optionally, you can set an static IP address directly in your Pi but this could lead to IP conflicts. The way to do this configuration might vary depending on your set up. In a domestic environment the DHCP server is typically allocated in the router provided by your ISP. You should refer to the manufacturer's manual about how to configure the DHCP server.

@luiscbr92
luiscbr92 / Install No-IP DUC on Raspberry Pi and start it on boot.md
Last active January 26, 2026 08:39
Install No-IP DUC on Raspberry Pi and start it on boot

How to install No-IP on Raspberry Pi

This Gist will guide you on how to install the No-IP DUC (Dynamic Upadate client) on a RaspberryPi and to automatically start it on boot. For this I am going to use a RaspberryPi 4B 2GB, but I have already done the same on a RaspberryPi 3B. I am going to use Raspberry Pi OS.

As a prerequisite you should register on https://no-ip.com and create the host entry that will be used later with your Pi.

First thing is to open a Terminal and create a directory to work with during the installation.

mkdir noip