Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisPalacios/bfb30e26bbfe2ad2dbef433d83616c7c to your computer and use it in GitHub Desktop.
Save LuisPalacios/bfb30e26bbfe2ad2dbef433d83616c7c to your computer and use it in GitHub Desktop.
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
ip route del default via ${bridge_ip_remota} table Decos 2>/dev/null
ip route del ${bridge_ip_rango} dev ${EB_BRIDGE} table Decos 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment