Skip to content

Instantly share code, notes, and snippets.

@xergio
xergio / 04-pihole-sur.conf
Created June 3, 2025 20:12 — forked from LuisPalacios/04-pihole-sur.conf
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
@xergio
xergio / 03-pihole-decos.conf
Created June 3, 2025 20:12 — forked from LuisPalacios/03-pihole-decos.conf
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
@xergio
xergio / 02-pihole-dhcp.conf
Created June 3, 2025 20:12 — forked from LuisPalacios/02-pihole-dhcp.conf
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
@xergio
xergio / 01-pihole.conf
Created June 3, 2025 20:12 — forked from LuisPalacios/01-pihole.conf
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.
###############################################################################
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte_RT_DOWN.sh
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte_RT_DOWN.sh
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
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte_RT_UP.sh
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte_RT_UP.sh
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
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte_DOWN.sh
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte_DOWN.sh
Sur: /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_DOWN.sh
#!/bin/bash
##
## Fichero /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_DOWN.sh
## En Servidor ‘sur’
##
## Este fichero está relacionado con este apunte:
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
##
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte_UP.sh
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte_UP.sh
Sur: /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_UP.sh
#!/bin/bash
##
## Fichero /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_UP.sh
## En Servidor ‘sur’
##
## Este fichero está relacionado con este apunte:
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
##
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
Sur: /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
#!/bin/bash
##
## Fichero /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte_CONFIG.sh
## En Servidor ‘sur’
##
## Este fichero está relacionado con este apunte:
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
##
@xergio
xergio / sur_cliente_bridge_ethernet_de_norte.conf
Created June 3, 2025 20:12 — forked from LuisPalacios/sur_cliente_bridge_ethernet_de_norte.conf
Sur: /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte.conf
##
## Fichero /etc/openvpn/client/sur_cliente_bridge_ethernet_de_norte.conf
## En Servidor ‘sur’
##
## Este fichero está relacionado con este apunte:
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html
##
# Cliente de un "Bridge Ethernet" OpenVPN
#