if [ $CONTROLE_P2P = "1" ]; then
$ipt -t mangle -A PREROUTING -j P2PLAYER7
$ipt -t mangle -A P2PLAYER7 -m ipp2p --ipp2p -j MARK --set-mark 3
#$ipt -t mangle -A P2PLAYER7 -m time --timestart $P2P_TIMESTART --timestop $P2P_TIMESTOP --days $P2P_DAYS -m ipp2p --ipp2p -j DROP
#$ipt -A FORWARD -m time --timestart $P2P_TIMESTART --timestop $P2P_TIMESTOP --days $P2P_DAYS -m ipp2p --ipp2p -j DROP
for i in `cat $LAYER7`; do
STATUS=`echo $i | cut -d ';' -f 1`
P2P=`echo $i | cut -d ';' -f 2`
DESC=`echo $i | cut -d ';' -f 3`
printf "$T_VERMELHO_CLARO CONTROLE P2P $NO_COLOUR\t["
if [ $STATUS = "1" ]; then
printf "$T_VERDE $GREEN LIBERADO DAS $P2P_TIMESTOP as $P2P_TIMESTART $P2P $NO_COLOUR - $T_VERDE $DESC $NO_COLOUR]\n"
$ipt -t mangle -A P2PLAYER7 -m layer7 --l7proto $P2P -j MARK --set-mark 3
#$ipt -t mangle -A P2PLAYER7 -m time --timestart $P2P_TIMESTART --timestop $P2P_TIMESTOP --days $P2P_DAYS -m layer7 --l7proto $P2P -j DROP
else
printf "$T_VERDE $RED CONTROLE DESABILITADO PARA $P2P $NO_COLOUR - $T_VERDE $DESC $NO_COLOUR]\n"
fi
done