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
lock | |
-ipv6 |
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
[core] | |
excludesfile = /Users/luis/.gitignore_global | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[color] | |
ui = true | |
[alias] | |
lol = !git --no-pager log --graph --decorate --pretty=oneline --abbrev-commit | |
index = ls-files --stage |
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 | |
# | |
## ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- |