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 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 |
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 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 |
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 | |
# | |
# /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" |
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
# | |
# 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 |
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_norte | |
# 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 de este host (i.e. sur.midominio.com) | |
# -r <name> Nombre DNS Público del host remoto (i.e. norte.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
# Documentado en: | |
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
# | |
[Unit] | |
Description=Vigilante Bridge Ethernet con Norte | |
Wants=network-online.target internet_wait.service | |
After=network-online.target internet_wait.service | |
[Service] | |
Type=simple |
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
# Documentado en: | |
# https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
# | |
[Unit] | |
Description=Vigila y activa el tunel ethernet bridge con Norte | |
[Timer] | |
# Cuanto espero tras el boot para ejecutar por primera vez | |
OnBootSec=1min | |
# Tiempo entre ejecuciones |
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_verifica_conectividad.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/sur_firewall_2_post_network.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/sur_firewall_1_pre_network.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 | |
## |