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
# Este servicio activa reglas con iptables llamando a un script | |
# | |
# Instalar con: | |
# systemctl enable firewall_1_pre_network.service | |
# | |
[Unit] | |
Description=Activar reglas iptables antes que la red | |
Wants=network-pre.target | |
Before=network-pre.target |
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
# Este servicio activa reglas con iptables llamando a un script | |
# | |
# Instalar con: | |
# systemctl enable firewall_2_post_network.service | |
# | |
[Unit] | |
Description=Activar reglas iptables despues de la red | |
Wants=network-online.target internet_wait.service | |
After=network-online.target internet_wait.service |
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 | |
# | |
## Servidor ‘norte’ | |
## | |
## Este fichero está relacionado con este apunte: | |
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
## | |
# | |
# Quita las iptables por completo, lo permite todo. | |
# |
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 | |
## | |
## /root/firewall/norte_firewall_inames.sh | |
## | |
## Script que configura iptables en un servidor Raspbian OS | |
## | |
## Este fichero está relacionado con este apunte: | |
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
## |
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 | |
## | |
## /root/firewall/norte_firewall_1_pre_network.sh | |
## | |
## Script que configura iptables en un servidor Raspbian OS | |
## que actúa como "norte" en este apunte: | |
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
## | |
## |
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 | |
## | |
## /root/firewall/sur_firewall_2_post_network.sh | |
## | |
## Script que configura iptables en un servidor Raspbian OS | |
## actuando de "norte" en este apunte: | |
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
## | |
## |
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 | |
# | |
# Script que verifica que la configuracion de la red es correcta, | |
# que hay conectividad con internet, prueba servicios, etc. | |
# | |
# Copyright (C) 2006 Luis Palacios | |
# | |
# Variables de trabajo | |
temporal=/tmp/temp-parchis-verifica.sh |
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
# /etc/default/watch_eth_bridge_con_sur | |
# Fichero de configuración para watch_eth_bridge_xxxxx.service | |
# | |
# Un ejemplo de caso de uso está descrito en este apunte: | |
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
# | |
# Opciones watch_eth_bridge.sh | |
# -l <name> Nombre DNS Público del este host (i.e. norte.midominio.com) | |
# -r <name> Nombre DNS Público del host remoto (i.e. sur.midominio.com) | |
# -b <interface> Nombre del interfaz utilizado para montar el BRIDGE |
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 | |
# | |
# /usr/bin/watch_eth_bridge.sh | |
# | |
# Un ejemplo de caso de uso está descrito en este apunte: | |
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
# | |
# | |
# Este script comprueba conectividad del tunel ethernet bridge openvpn entre | |
# dos servidores. Primero se asegura de tener las entradas correctas en el |
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
## Este fichero está relacionado con este apunte: | |
## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
# | |
# Configuración de "Access Server" de OpenVPN | |
# | |
# Server (Servidor de Acceso) exponiendo el siguiente | |
# rango dentro del tunel. Escucho en un puerto cualquiera libre. | |
server 192.168.224.0 255.255.255.0 |