Initial commit: project openvpn-monitor
This commit is contained in:
56
openvpn-monitor/index.php
Normal file
56
openvpn-monitor/index.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
date_default_timezone_set('Europe/Minsk');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>OpenVPN Монитор</title>
|
||||
<link rel="stylesheet" href="assets/style.css">
|
||||
<script src="assets/script.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>🔐 Мониторинг OpenVPN</h1>
|
||||
<nav class="tabs">
|
||||
<button class="tab-button active" data-tab="overview">Общие сведения</button>
|
||||
<button class="tab-button" data-tab="tls">Ошибки TLS</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<div id="compression-stats" class="stats-block" style="margin-top: 10px;
|
||||
font-weight: bold;"></div>
|
||||
<section id="tab-overview" class="tab-content active">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Имя</th>
|
||||
<th>IP</th>
|
||||
<th>Вирт. IP</th>
|
||||
<th>Сессия</th>
|
||||
<th>RX</th>
|
||||
<th>TX</th>
|
||||
<th>Статус</th>
|
||||
<th>Простой</th>
|
||||
<th>Сжатие</th>
|
||||
<th>Пакеты приняты</th>
|
||||
<th>Пакеты потеряны</th>
|
||||
<th>Потери (%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="client-table"></tbody>
|
||||
</table>
|
||||
</section> </section>
|
||||
|
||||
<section id="tab-tls" class="tab-content">
|
||||
<h2>⚠️ Ошибки TLS от клиентов</h2>
|
||||
<div id="tls-errors" class="tls-error-box">Загрузка...</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© <?= date('Y') ?> OpenVPN Dashboard</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user