This file contains 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
# Secrets for authentication using PAP | |
# client server secret IP addresses | |
adslppp@telefonicanetpa pppd adslppp * |
This file contains 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 | |
# | |
# Fichero /usr/bin/cdmon_update.sh | |
# | |
# Este servicio ejecuta el script para consumir | |
# el API de actualización de IP del DNS gratis dinámico | |
# de mi proveedor de dominios CDMON. | |
# | |
# Documento un caso de uso en este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html |
This file contains 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/cdmon_update.timer | |
# | |
# Esta unidad lanza cdmon_update.service, que consume el | |
# API de actualización de IP del DNS gratis dinámico | |
# de mi proveedor de dominios CDMON. | |
# | |
# Para activarlo ejecutar: | |
# systemctl enable cdmon_update.timer | |
# |
This file contains 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/cdmon_update.service | |
# | |
# Este servicio ejecuta el script que tengo preparado para | |
# consumir el API de actualización de IP del DNS gratis dinámico | |
# de mi proveedor de dominios CDMON. | |
# | |
# Para activarlo ver cdmon_update.timer | |
# | |
# Documento un caso de uso en este apunte: |
This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# LuisPa: -------------------------------------------------------------- | |
export PATH=$HOME/0_priv/bin:/usr/local/bin:/usr/local/sbin:$PATH | |
launchctl setenv PATH "/usr/local/bin:/usr/local/sbin:$PATH" | |
# Homebrew | |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/luis/.zprofile # Homebrew en Mac ARM | |
eval "$(/opt/homebrew/bin/brew shellenv)" # Homebrew en Mac ARM | |
#(echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/luis/.zprofile # Homebrew en Mac Intel |
This file contains 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
[user] | |
name = Mi Nombre | |
email = mi.correo@dominio.com | |
signingKey = "" | |
[core] | |
excludesfile = /Users/luis/.gitignore_global | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[color] |
This file contains 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
# Compilados. # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
a.out |
This file contains 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 /etc/knockd.conf | |
# | |
# El Port Knocking (llamar a la puerta) consiste en enviar (típicamente) tres paquetes a tu servidor | |
# (firewall) para que te abra un puerto concreto. Tenemos el puerto de SSH (22) cerrado (haciendo | |
# drops). Mandamos desde internet tres paquetes (SYN) con una cadencia determinada; el router/firewall | |
# se da por enterado (están llamando a la puerta) y te abre durante un rato (a la IP desde donde estás | |
# mandado esos paquetes) el puerto 22. Boom !!! ya puedes entrar !!! | |
# | |
# Este fichero es un ejemplo de configuración y está relacionado con este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html |
This file contains 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 bash | |
# | |
# /root/firewall/firewall_verifica.sh | |
# | |
# Script que verifica que la configuracion de la red es correcta, | |
# | |
# Está relacionado con este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
## ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- |
This file contains 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 bash | |
# | |
# /root/firewall/firewall_2_post_network.sh | |
# | |
# Script que se ejecuta tras activar la red y termina de instalar las reglas de iptables | |
# y realiza las últimas confirmaciones... | |
# | |
# Está relacionado con este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# |