Commit Graph

99 Commits

Author SHA1 Message Date
ImBenji
e28a66a9f8 Show ASCII translation for each hex line 2025-08-29 16:22:26 +01:00
ImBenji
fd75a36381 Show raw hex lines as they're collected 2025-08-29 16:20:48 +01:00
ImBenji
d007caacd5 Simplify to detect and print handshake packet contents
- Detect TCP SYN packets and protocol-specific handshakes
- Print raw hex data in readable hex dump format with ASCII
- Show actual packet contents for signature analysis
2025-08-29 16:17:05 +01:00
ImBenji
d9f87675d2 Replace broken nDPI detection with proper payload analysis
- Extract actual TCP/UDP payload data instead of analyzing headers
- Implement direct BitTorrent handshake detection (19-byte 'BitTorrent protocol')
- Add HTTP, TLS, and SSH payload signature detection
- Remove non-functional nDPI flow processing
2025-08-29 16:13:29 +01:00
ImBenji
6d2fa16717 Update nDPI analyzer for modern API
- Use ndpi_global_init() and proper initialization
- Remove deprecated NDPI_PROTOCOL_BITMASK and related functions
- Use ndpi_flow_input_info structure for packet processing
- Remove confidence field (not available in current API)
2025-08-29 16:07:08 +01:00
ImBenji
fe88b4bc3f Use pkg-config flags for nDPI compilation
Let pkg-config provide the correct include paths instead of overriding them.
2025-08-29 16:05:35 +01:00
ImBenji
39e50ab4e4 Fix nDPI header include path
Changed from libndpi/ndpi_api.h to ndpi_api.h to match actual installation path in /usr/local/include/ndpi/.
2025-08-29 16:04:30 +01:00
ImBenji
21635a9fc0 Fix nDPI protocol analyzer compilation
Properly link required libraries (json-c, pthread, math) and fail build if compilation fails instead of silencing the error.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 16:02:18 +01:00
ImBenji
8987c3457b Add fallback protocol analyzer when nDPI compilation fails
Creates a simple bash script that returns unknown protocol when nDPI compilation fails, preventing ProcessException errors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 15:58:29 +01:00
ImBenji
3bf56e7248 Fix string bounds error in payload analysis fallback
Fixes RangeError when ASCII sample is shorter than 100 characters by checking length before substring.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 15:55:21 +01:00
ImBenji
5a9e2b501f Enhance packet processing to accumulate and analyze hex data from monitored peers 2025-08-29 15:48:39 +01:00
ImBenji
0731045bdd Enhance payload monitoring and analysis in protocol blocking service 2025-08-29 15:45:44 +01:00
ImBenji
f1672153da Enhance payload monitoring and analysis in protocol blocking service 2025-08-29 15:43:31 +01:00
ImBenji
d532491c7c Fix scan count condition for debugging networking 2025-08-29 15:33:31 +01:00
ImBenji
84263c0f63 Fix scan count condition for debugging networking 2025-08-29 15:26:31 +01:00
ImBenji
db17f33dfe Add network debugging functionality and enhance packet capture monitoring 2025-08-29 02:08:29 +01:00
ImBenji
8bc9762e6f Add network debugging functionality and enhance packet capture monitoring 2025-08-29 01:55:34 +01:00
ImBenji
2382922995 Refactor packet monitoring to capture all traffic on wg0 and enhance logging for peer traffic detection 2025-08-29 01:51:34 +01:00
ImBenji
aa5b609d09 Enhance traffic capture testing with longer timeouts and additional checks 2025-08-29 01:48:45 +01:00
ImBenji
b03378c99d Add fallback protocol analysis for unavailable nDPI analyzer 2025-08-29 01:44:42 +01:00
ImBenji
7a7503d474 Enhance Dockerfile for protocol analyzer: add debug checks for nDPI installation and update include paths 2025-08-29 01:40:26 +01:00
ImBenji
3b0993f1d7 Enhance Dockerfile for protocol analyzer: add debug checks for nDPI installation and update include paths 2025-08-29 01:39:14 +01:00
ImBenji
32ba6b390a Enhance Dockerfile for protocol analyzer: add debug checks for nDPI installation and update include paths 2025-08-29 01:38:47 +01:00
ImBenji
09e8fc3834 Add build dependencies for nDPI in Dockerfile 2025-08-29 01:35:56 +01:00
ImBenji
fc222b59e7 Add build dependencies for nDPI in Dockerfile 2025-08-29 01:32:24 +01:00
ImBenji
7f28184857 Add nDPI protocol analyzer and integrate with handshake analysis 2025-08-29 01:29:06 +01:00
ImBenji
9e8432293e Add peer connectivity testing to protocol blocking service 2025-08-29 00:58:12 +01:00
ImBenji
cdafb400e2 Enhance peer traffic monitoring with tcpdump and detailed handshake capture 2025-08-29 00:54:42 +01:00
ImBenji
18b2704810 Enhance protocol blocking service logging and refine packet capture for WireGuard 2025-08-29 00:52:05 +01:00
ImBenji
e791655089 Enhance handshake analysis with detailed logging and protocol detection improvements 2025-08-29 00:47:49 +01:00
ImBenji
84d6a96495 Enhance protocol blocking service to monitor and update active VPN peer IPs 2025-08-29 00:46:06 +01:00
ImBenji
26fff45c28 Enhance protocol blocking service to monitor and update active VPN peer IPs 2025-08-29 00:41:28 +01:00
ImBenji
3649a55dc4 Refactor connection scanning logic to use a static scan count variable 2025-08-29 00:34:57 +01:00
ImBenji
2f845e0e3a Refactor connection scanning logic to use a static scan count variable 2025-08-29 00:32:35 +01:00
ImBenji
88ab9cf2e3 Enhance Dockerfile to include tcpdump for network monitoring 2025-08-29 00:22:49 +01:00
ImBenji
929dfafe78 Enhance Dockerfile to include tcpdump for network monitoring 2025-08-29 00:11:15 +01:00
ImBenji
5ed7b43613 Update privacy policy to clarify bandwidth usage data collection 2025-08-29 00:10:49 +01:00
ImBenji
e08e1afe7a Decode public key from request parameters in peer routes 2025-08-28 23:26:07 +01:00
ImBenji
73afa2f7a3 Add peer creation time tracking and enhance DEAD peer handling 2025-08-28 23:00:14 +01:00
ImBenji
1b0ee56d79 Fix external port configuration to handle null values in server registration 2025-08-28 22:41:44 +01:00
ImBenji
0b6c8c2d7d Enhance IP address retrieval in request logger middleware 2025-08-28 21:58:58 +01:00
ImBenji
0c6b6d56ed Enhance IP address retrieval in request logger middleware 2025-08-28 21:38:35 +01:00
ImBenji
6b1da30df0 Fix external port configuration to handle null values in server registration 2025-08-28 21:32:01 +01:00
ImBenji
3964c733ae Update server registration to return operational seed for heartbeat initialization 2025-08-28 21:25:25 +01:00
ImBenji
4083d24114 Change registerServer method to return operational seed after successful registration 2025-08-28 21:21:56 +01:00
ImBenji
4a8cae4c5a Update server registration to return operational seed for heartbeat initialization 2025-08-28 21:20:57 +01:00
ImBenji
654fbc30c2 Refactor heartbeat initialization to accept operational seed and remove redundant registration logic 2025-08-28 21:16:04 +01:00
ImBenji
44346589cc Add external port configuration to server registration request 2025-08-28 20:40:11 +01:00
ImBenji
022c9b6339 Add Protocol Blocking Service to monitor and capture new connections 2025-08-28 17:01:48 +01:00
ImBenji
c294bc5c08 Reduce heartbeat interval from 120 seconds to 90 seconds for improved responsiveness 2025-08-22 16:59:15 +01:00