-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.php
69 lines (56 loc) · 1.72 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*****************************
*
*
* This file is the webgui for update and manager rules of project:
*
* https://github.com/elmaxid/Suricata2MikroTik *
*
* Author: Maximiliano Dobladez [email protected]
*
* http://maxid.com.ar | http://www.mkesolutions.net
*
*
* LICENSE: GPLv2 GNU GENERAL PUBLIC LICENSE
*
*
* v1.0 - initial version
******************************/
define('VERSION', '1.1');
#
# Reload Rules suricata
#kill -USR2 $(pidof suricata)
#
// header( 'Content-Type: text/plain' );
$cfg['db_user_name'] = "root";
/* Database username */
$cfg['db_password'] = "p4c0tilla";
/* Database password */
$cfg['db_database'] = "suricata2ips";
$cfg['db_server'] = "localhost";
$cfg['PID_app_file'] = '/tmp/suricata2mikrotik.pid';
$cfg['PID_reload_file'] = '/tmp/suricata2mikrotik.reload.pid'; //para recargar las reglas
$cfg['file_log'] = '/tmp/suricata2mikrotik.log'; //log
// TELEGRAM API
$url_api_telegram="https://api.telegram.org/bot314xxxxxxxx10yxLxxxxR13an4wk/sendMessage?chat_id=-1xxx847xx3&text=";
//$active_api_telegram=true;
$active_api_telegram=false;
//mail report
$active_mail_report=false;
$cfg[ 'whitelist' ] = array(
'10.0.0.0/8',
'192.168.0.0/16',
'172.16.0.0/16',
'0.0.0.0' #bugfix
);
# Time in minutes to restart API connection
# Tiempo para reiniciar la conexión API
$router['restart_conn_time'] = 5;
// $router['conn']="API"; //API o SSH
// $router['ip']="10.200.200.1"; //IP Router
$router['conn'] = "SSH"; //API o SSH
$router['ip'] = "192.168.10.1"; //IP Router
$router['user'] = "api"; // user login
$router['pass'] = "api123"; //pass
$router['port'] = "22"; //port ssh
$router['address_list_block'] = "Blocked"; //Address list to add blocked IP