Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2853 → Rev 2854

/conf/etc/alcasar-iptables-local.sh
31,20 → 31,20
done < /usr/local/etc/alcasar-iptables-local-mac-filtered
fi
 
# On autorise le ping (echo & request) (ICMP N°0 & 8) en provenance de l'extérieur vers ALCASAR
# Allow ping (echo & request) (ICMP N°0 & 8) on EXTIF
# On autorise le ping (echo & request) (ICMP N°0 & 8) en provenance d'Internet vers ALCASAR
# Allow ping (echo & request) (ICMP N°0 & 8) from Internet
#$IPTABLES -A INPUT -i $EXTIF -s $Admin_from_IP -p icmp --icmp-type 8 -j ACCEPT
#$IPTABLES -A OUTPUT -o $EXTIF -d $Admin_from_IP -p icmp --icmp-type 0 -j ACCEPT
 
# On autorise l'accès à un serveur MAIL (SMTP) pour l'envoie de rapports, alertes (logwatch, etc.)
# Allow access to a mail server (SMTP)
# On autorise ALCASAR a accéder à un serveur MAIL local (envoie de rapports, alertes, etc.)
# Allow ALCASAR to conect to a local mail server (send reports, alerts, etc.)
#SMTP_IP='192.168.111.5' # IP of mail server
#SMTP_PORT=587 # port of mail server (25 for SMTP ; 587 for STARTTLS ; 465 for SMTPS)
#$IPTABLES -A OUTPUT -p tcp -d $SMTP_IP --dport $SMTP_PORT -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
#$IPTABLES -A INPUT -p tcp -s $SMTP_IP --sport $SMTP_PORT -m conntrack --ctstate ESTABLISHED -j ACCEPT
 
# On autorise du PAT (Port Adresse Translation) afin de pouvoir joindre des équipements du LAN à partir d'Internet
# Allow PAT (Port Adresse Translation)
# On autorise l'accès SSH depuis Internet (port 11222) vers un equipement du LAN (port 22). On réalise donc un "PAT" (Port Adresse Translation)
# Allow PAT (Port Adresse Translation) from INTERNET (port 11222) in order to connect to a LAN equipment on port 22 (SSH)
# example for the external UDP-TCP port 11222 which is redirected to the internal IP 192.168.182.10 on port 22
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p tcp -d $PUBLIC_IP --dport 11222 -j DNAT --to 192.168.182.10:22
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p udp -d $PUBLIC_IP --dport 11222 -j DNAT --to 192.168.182.10:22
/web/acc/manager/htdocs/accounting.php
1,9 → 1,30
<!DOCTYPE html>
<?php
require('/etc/freeradius-web/config.php');
require('../lib/functions.php');
require('../lib/sql/functions.php');
require('../lib/acctshow.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
echo <<<EOM
<title>$l_title</title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<center>
<b>Could not include SQL library functions. Aborting</b>
</body>
</html>
EOM;
exit();
}
#choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
37,24 → 58,6
$l_delete = "Delete";
$l_edit_user = "Edit user :";
}
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
echo <<<EOM
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>$l_title</title>
<link rel="stylesheet" href="/css/acc.css">
</head>
<body>
<center>
<b>Could not include SQL library functions. Aborting</b>
</body>
</html>
EOM;
exit();
}
 
$operators=array( '=','<', '>', '<=', '>=', 'regexp', 'like' );
if ($config['sql_type'] == 'pg'){
134,9 → 137,6
}
 
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?= $l_title ?></title>
<link rel="stylesheet" href="/css/acc.css">
</head>
/web/acc/manager/htdocs/user_stats.php
6,7 → 6,7
require('../lib/sql/nas_list.php');
require_once('../lib/xlat.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
<html>
<?php
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
50,6 → 50,26
$l_server = "Serveur";
$l_login = "Identifiant";
$l_user_edit = "Éditer l'utilisateur";
} else if($Language == 'es') {
$l_title = "Estadísticas de conexiones de los Usuarios";
$l_start_date = "Desde fecha";
$l_end_date = "Hasta fecha";
$l_number_result = "Nro de resultados / páginas";
$l_order_by = "Ordenados por";
$l_sorted_order = "Ordenar resultados";
$l_all = "Todos";
$l_con_number = "Números de conexiones";
$l_con_length = "Duración de la conexión";
$l_ascending = "Ascendente";
$l_descending = "Descendente";
$l_server = "En el servidor";
$l_user = "Filtrar por usuario (en blanco para todos los usuarios)";
$l_show = "Mostrar";
$l_from = "Desde";
$l_to = "hasta";
$l_server = "Servidor";
$l_login = "Usuario";
$l_user_edit = "Modificar usuario";
} else {
$l_title = "Statistics of users connexions";
$l_start_date = "Start date";
85,14 → 105,10
<link rel="stylesheet" href="/css/acc.css" type="text/css">
</head>
<body>
<center>
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>
<font color="white"><?echo "$l_title";?></font>
</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<?php
if(isset($pagesize))
{
202,7 → 218,7
echo <<<EOM
</table>
<hr>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
EOM;
}
else
293,5 → 309,7
</table>
</form>
</td></tr></table>
</div>
</div>
</body>
</html>