Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 14

actualización

Ver diferencias:

deny_https
# Variables
IPTABLES=/sbin/iptables
FICHERO=deny_https.all
DENY_HTTPS=/etc/network/deny_https.conf
DENY_HTTPS_ALL=/etc/network/deny_https.all
DENY_HTTPS_ALL=/etc/network/$FICHERO
DENY_HTTPS_IES=/etc/network/deny_https.ies
RUTA=http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/entry/limitar-https/trunk
RED=`ifconfig | grep Bcast | cut -f2 -d: | awk '{print }' | cut -f1 -d.`
#----------------------------------------------------------------------------------------
# Descarga el fichero general de https a denegar por todos los IES
wget -O /etc/network/$DENY_HTTPS_ALL $RUTA/$DENY_HTTPS_ALL?format=raw
wget -q -O $DENY_HTTPS_ALL $RUTA/$FICHERO?format=raw
# Unimos y filtramos los ficheros de configuración
cat $DENY_HTTPS_ALL $DENY_HTTPS_IES | egrep -v '#|^$' | awk '{print $1}' | sort | uniq > $DENY_HTTPS

Exportar a: Unified diff