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 / sur_cliente_bridge_ethernet_de_norte_RT_DOWN.sh
Last active June 3, 2025 20:12
Sur: Fichero de apoyo al tirar el t煤nel bridge-ethernet
#!/bin/bash
# Script que se ejecuta al hacer un `stop` del servicio Bridge Ethernet
# Interfaces, rutas + IP y MACs asociar茅 a las interfaces tap y bridge
. /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
##
## Equipos (Decos) que llegan a Movistar IPTV
##
ip rule del from ${bridge_ip_rango} table Decos 2>/dev/null
@LuisPalacios
LuisPalacios / sur_cliente_bridge_ethernet_de_norte_RT_UP.sh
Last active June 3, 2025 20:12
Sur: Fichero de apoyo al montar el t煤nel bridge-ethernet
#!/bin/bash
# Script que se ejecuta al hacer un `start` del servicio Bridge Ethernet
# Interfaces, rutas + IP y MACs asociar茅 a las interfaces tap y bridge
. /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
##
## Equipos (Decos) que llegan a Movistar IPTV
##
# Creo una tabla de routing dedicada
@LuisPalacios
LuisPalacios / sur_cliente_access_de_norte_DOWN.sh
Last active June 3, 2025 20:12
Sur: Script que se ejecuta al tirar el t煤nel de acceso.
#!/bin/bash
# Script que se ejecuta al tirar el tunel
#
# /etc/openvpn/client/sur_cliente_access_de_norte_DOWN.sh
#
# Documentado en:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
# Interfaces, rutas + IP y MACs asociar茅 a las interfaces tap y bridge
@LuisPalacios
LuisPalacios / sur_cliente_access_de_norte_CONFIG.sh
Last active June 3, 2025 20:12
Sur: script de apoyo para crear un t煤nel de acceso
#!/bin/bash
#
# /etc/openvpn/client/sur_cliente_access_de_norte_CONFIG.sh
#
# Documentado en:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
export ifNorteTunel="tun1"
export ipNorteTunelRouter="192.168.224.1"
@LuisPalacios
LuisPalacios / sur_cliente_access_de_norte_UP.sh
Last active June 3, 2025 20:12
Sur: Script que se ejecuta al levantar el tunel OpenVPN
#!/bin/bash
# Script que se ejecuta al levantar el tunel OpenVPN
#
# /etc/openvpn/client/sur_cliente_access_de_norte_UP.sh
#
# Documentado en:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
# Interfaces, rutas + IP y MACs asociar茅 a las interfaces tap y bridge
. /etc/openvpn/client/sur_cliente_access_de_norte_CONFIG.sh
@LuisPalacios
LuisPalacios / sur_cliente_access_de_norte.conf
Last active June 3, 2025 20:12
Cliente de un tunel "Access Server" OpenVPN
#
# Configuraci贸n CLIENTE de un tunel "Access Server" OpenVPN
# Documentado en:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
# Soy "cliente", expondr茅 el device tun1
client
dev tun1
proto udp
@LuisPalacios
LuisPalacios / 01-pihole.conf
Created March 8, 2023 15:17
Pi-hole automatically generated file
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Dnsmasq config for Pi-hole's FTLDNS
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
###############################################################################
@LuisPalacios
LuisPalacios / 02-pihole-dhcp.conf
Created March 8, 2023 15:16
Pi-Hole dhcp file automatically generated
###############################################################################
# DHCP SERVER CONFIG FILE AUTOMATICALLY POPULATED BY PI-HOLE WEB INTERFACE. #
# ANY CHANGES MADE TO THIS FILE WILL BE LOST ON CHANGE #
###############################################################################
dhcp-authoritative
dhcp-range=192.168.107.10,192.168.107.200,24h
dhcp-option=option:router,192.168.107.1
dhcp-leasefile=/etc/pihole/dhcp.leases
#quiet-dhcp
@LuisPalacios
LuisPalacios / 03-pihole-decos.conf
Last active June 3, 2025 20:12
Pi-hole: Configuraci贸n DHCP para Decos Movistar
# Pi-hole: Configuraci贸n DHCP
# /etc/dnsmasq.d/03-pihole-decos.conf
#
# Este fichero est谩 referenciado en este apunte:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
# DECOS
# Rango
@LuisPalacios
LuisPalacios / 04-pihole-sur.conf
Last active June 3, 2025 20:12
Pi-hole: Configuraci贸n DHCP vlan eth1.10
# Pi-hole: Configuraci贸n DHCP
# /etc/dnsmasq.d/04-pihole-sur.conf
#
# Este fichero est谩 referenciado en este apunte:
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
#
# SUR
# VLAN eth1.10