Skip to content

Instantly share code, notes, and snippets.

View LuisPalacios's full-sized avatar
馃彔
Working from home

Luis Palacios Derqui LuisPalacios

馃彔
Working from home
View GitHub Profile
@LuisPalacios
LuisPalacios / extensions.conf
Last active November 27, 2024 16:23
Fichero extensions.conf para Asterisk
; ---------------------------------------------------------------------------------------
; Definiciones globales
; ---------------------------------------------------------------------------------------
[general]
static=yes ; Evitar modificaciones desde fuera
writeprotect=no ; Permitir 'dialplan save' desde el CLI
clearglobalvars=no ; Cargar variables con 'dialplan reload'
; Definici贸n de variables
; ---------------------------------------------------------------------------------------
@LuisPalacios
LuisPalacios / sip.conf
Last active November 27, 2024 16:22
Fichero de configuraci贸n SIP de Asterisk
; ---------------------------------------------------------------------------------------
; Definiciones generales
; ---------------------------------------------------------------------------------------
[general]
udpbindaddr=0.0.0.0 ; Escucho en todas las IP's. LAN y VLAN3 (Movistar)
tcpenable=no ; Lo har茅 todo por udp, as铆 que deshabilito TCP
transport=udp ; Siempre UDP...
bindport=5060 ; Puerto por defecto
qualify=yes ; Permite monitorizar la conexi贸n con los tel茅fonos IP
language=es ; Cambia el idioma por defecto para todos los usuarios
@LuisPalacios
LuisPalacios / .tmux.conf
Last active July 25, 2024 09:22
My .tmux.conf 2024
# .tmux.conf LuisPa 2024
#
# Referencias:
# - https://www.luispa.com/administraci%C3%B3n/2024/04/25/tmux.html
# - https://www.luispa.com/administraci%C3%B3n/2024/04/23/zsh.html
#
# LuisPa: -------------------------------------------------------------- START
#
# Pongo Ctrl+A como PREFIX_KEY y dejo Ctrl+B como backup.
@LuisPalacios
LuisPalacios / .zshrc
Last active October 1, 2024 08:53
My .zshrc 2024
# Fichero .zshrc de LuisPa 2024
# Utilizado en MacOS (con brew), Linux (Ubuntu), Windows WSL2
#
# Referencias:
# - https://www.luispa.com/administraci%C3%B3n/2024/04/25/tmux.html
#
# - https://www.luispa.com/administraci%C3%B3n/2024/04/23/zsh.html
# DEPENDIENCIAS
# 1) Script .zshrc.async
# Lo descargo autom谩ticamente desde https://github.com/LuisPalacios/zsh-async
@LuisPalacios
LuisPalacios / close-npm-letsencrypt.sh
Last active May 2, 2023 11:21
Script para cerrar el puerto 80 y port forwarding a mi Nginx
#!/bin/bash
#
# Para crear/renovar certificados SSL necesito que Let's Encrypt pueda hablar con
# el Web Server temporal que "Nginx Proxy Manager". Este script cierra el puerto 80
# y su redirecci贸n a mi m谩quina virtual donde ejecuto NPM.
#
# Este script est谩 refereciado en el apunte:
# https://www.luispa.com/administraci贸n/2023/04/08/networking-avanzado.html
#
IP=192.168.100.243
@LuisPalacios
LuisPalacios / open-npm-letsencrypt.sh
Last active May 2, 2023 11:22
Script apra abrir temporalmente el puerto 80 y hacer port forwarding a mi Nginx Proxy manager
#!/bin/bash
#
# Para crear/renovar certificados SSL necesito que Let's Encrypt pueda hablar con
# el Web Server temporal que "Nginx Proxy Manager". Abro y redirijo el puerto 80
# a mi m谩quina virtual donde ejecuto NPM.
#
# Este script est谩 refereciado en el apunte:
# https://www.luispa.com/administraci贸n/2023/04/08/networking-avanzado.html
#
IP=192.168.100.243
@LuisPalacios
LuisPalacios / muro_access_server.conf
Created April 30, 2023 16:31
Fichero de configuraci贸n de Access Server OpenVPN
## Fichero de configuraci贸n de Access Server OpenVPN.
## /etc/openvpn/server/muro_access_server.conf
##
## Este fichero est谩 relacionado con este apunte:
## http://www.luispa.com/administraci贸n/2023/04/08/networking-avanzado.html
##
# Server (Servidor de Acceso) exponiendo el siguiente
# rango dentro del tunel. Escucho en un puerto cualquiera libre.
server 192.168.222.0 255.255.255.0
@LuisPalacios
LuisPalacios / [email protected]
Created April 30, 2023 15:36
Unit systemd para gesti贸n de sesi贸n PPP que no espera a que se establezca
#
# Unit systemd para gesti贸n de PPP
# /etc/systemd/system/[email protected]
# by LuisPa 2015
#
# Documento un caso de uso en este apunte:
# https://www.luispa.com/administraci贸n/2023/04/08/networking-avanzado.html
#
# Activar este servicio creando la configuraci贸n, p.ej:
# en /etc/ppp/peers/movistar
@LuisPalacios
LuisPalacios / [email protected]
Last active April 30, 2023 15:38
Unit systemd para gesti贸n de sesi贸n PPP esperando a que se establezca
#
# Unit systemd para gesti贸n de PPP
# /etc/systemd/system/[email protected]
# by LuisPa 2015
#
# Documento un caso de uso en este apunte:
# https://www.luispa.com/administraci贸n/2023/04/08/networking-avanzado.html
#
# Activar este servicio creando la configuraci贸n, p.ej:
# en /etc/ppp/peers/movistar
@LuisPalacios
LuisPalacios / movistar
Created April 29, 2023 16:50
Fichero /etc/ppp/peers/movistar para arrancar el servicio [email protected]
# Configuracion Movistar para systemd
#
# Se usar谩 cuando se ejecute systemctl enable [email protected]
#
plugin rp-pppoe.so
plugin passwordfd.so
# login name
name "adslppp@telefonicanetpa"