gadgeteerza

pialert.conf

Sep 16th, 2022 (edited)
451
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.54 KB | Source Code | 0 0
  1. #-------------------------------------------------------------------------------
  2. #  Pi.Alert
  3. #  Open Source Network Guard / WIFI & LAN intrusion detector
  4. #
  5. #  pialert.conf - Back module. Configuration file
  6. #-------------------------------------------------------------------------------
  7. #  Puche 2021        [email protected]        GNU GPLv3
  8. #-------------------------------------------------------------------------------
  9.  
  10. PIALERT_PATH            = '/home/pi/pialert'
  11. DB_PATH                 = PIALERT_PATH + '/db/pialert.db'
  12. LOG_PATH                = PIALERT_PATH + '/log'
  13. VENDORS_DB              = '/usr/share/arp-scan/ieee-oui.txt'
  14. PRINT_LOG               = False
  15. TIMEZONE                = 'Africa/Johannesburg'
  16. PIALERT_WEB_PROTECTION  = False
  17. PIALERT_WEB_PASSWORD    = '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92'
  18.  
  19. # EMAIL settings
  20. # ----------------------
  21. SMTP_SERVER             = 'smtp.gmail.com'
  22. SMTP_PORT               = 587
  23. SMTP_USER               = '[email protected]'
  24. SMTP_PASS               = 'mailpassword'
  25. SMTP_SKIP_TLS           = False
  26. SMTP_SKIP_LOGIN         = False
  27.  
  28. REPORT_MAIL             = True
  29. REPORT_FROM             = 'Pi.Alert <' + SMTP_USER +'>'
  30. REPORT_TO               = '[email protected]'
  31. REPORT_DEVICE_URL       = 'http://pi.alert/deviceDetails.php?mac='
  32. REPORT_DASHBOARD_URL    = 'http://pi.alert/'
  33.  
  34. # Webhook settings
  35. # ----------------------
  36. REPORT_WEBHOOK          = False
  37. WEBHOOK_URL             = 'http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa'
  38. # webhook payload data format for the "body > attachements > text" attribute in https://github.com/jokob-sk/Pi.Alert/blob/main/docs/webhook_json_sample.json
  39. #   supported values: 'json' or 'html'
  40. #   e.g.: for discord use 'html'
  41. WEBHOOK_PAYLOAD         = 'json'  
  42.  
  43. # Apprise settings
  44. #-----------------------
  45. REPORT_APPRISE          = False
  46. APPRISE_HOST            = 'http://localhost:8000/notify'
  47. APPRISE_URL             = 'mailto://smtp-relay.sendinblue.com:587[email protected]&name=apprise&[email protected]&pass=password&[email protected]'
  48.  
  49. # NTFY (https://ntfy.sh/) settings
  50. # ----------------------
  51. REPORT_NTFY             = False
  52. NTFY_TOPIC              = 'choose_any_alert_topic'
  53.  
  54. # PUSHSAFER (https://www.pushsafer.com/) settings
  55. # ----------------------
  56. REPORT_PUSHSAFER        = False
  57. PUSHSAFER_TOKEN         = 'ApiKey'
  58.  
  59. # DynDNS
  60. # ----------------------
  61. # QUERY_MYIP_SERVER       = 'https://diagnostic.opendns.com/myip'
  62. QUERY_MYIP_SERVER       = 'http://ipv4.icanhazip.com'
  63. DDNS_ACTIVE             = False
  64. DDNS_DOMAIN             = 'your_domain.freeddns.org'
  65. DDNS_USER               = 'dynu_user'
  66. DDNS_PASSWORD           = 'A0000000B0000000C0000000D0000000'
  67. DDNS_UPDATE_URL         = 'https://api.dynu.com/nic/update?'
  68.  
  69. # PIHOLE settings
  70. # ----------------------
  71. PIHOLE_ACTIVE           = False
  72. PIHOLE_DB               = '/etc/pihole/pihole-FTL.db'
  73. DHCP_ACTIVE             = False
  74. DHCP_LEASES             = '/etc/pihole/dhcp.leases'
  75.  
  76. # arp-scan options & samples
  77. # ----------------------
  78. #
  79. # Scan local network (default)
  80. # SCAN_SUBNETS    = '--localnet'
  81. #
  82. # Scan two subnets
  83. # SCAN_SUBNETS    = '192.168.11.0/24 192.168.144.0/24'
  84. #
  85. # Scan using interface eth0
  86. # SCAN_SUBNETS    = '--localnet --interface=eth0'
  87. #
  88. # Scan multiple interfaces (eth1 and eth0):
  89. # SCAN_SUBNETS    = [ '192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0' ]
  90.  
  91. SCAN_SUBNETS    = '--localnet'
  92.  
  93. # Maintenance Tasks Cron
  94. # ----------------------
  95. DAYS_TO_KEEP_EVENTS = 90
  96.  
Advertisement
Comments
  • gadgeteerza
    2 years
    Comment was deleted
  • gadgeteerza
    2 years
    # text 0.37 KB | 0 0
    1. This is an example of the pialert.conf config file for Pi.Alert that I'm using.
    2.  
    3. Config file has network scan as default local option. Can run from CLI `ip link show` to see broadcast interface is available (below loopback). Can manually run `sudo arp-scan --interface=enp4s0 192.168.1.0/24` to see what is returned, or try `sudo arp-scan -l` also to see it returns valid data.
Add Comment
Please, Sign In to add comment