This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Fichero systemd: | |
| # /etc/systemd/system/arsys_update.service | |
| # | |
| # Conjunto de tres ficheros | |
| # /etc/systemd/system/arsys_update.timer | |
| # /etc/systemd/system/arsys_update.service | |
| # /usr/bin/arsys_update.py | |
| # | |
| # Ejecuta un script para consumir el API que permite | |
| # hacer actualizaciones en el DNS de Arsys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # By LuisPa 2024 | |
| # Copiar en /usr/bin/arsys_update.py | |
| # | |
| # Este script modifica la IP de mi servidor en mi dominio en internet. | |
| # Recibo una IP din谩mica y necesito actualizarla cada vez que reconecto. | |
| # | |
| # | |
| # Conjunto de tres ficheros | |
| # /etc/systemd/system/arsys_update.timer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; --------------------------------------------------------------------------------------- | |
| ; 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 | |
| ; --------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; --------------------------------------------------------------------------------------- | |
| ; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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 |