You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The header format follows the HAProxy PROXY protocol v1 specification
263
263
- If the target service doesn't support PROXY protocol, connections may fail or behave unexpectedly
264
264
265
+
## TCP Support Control
266
+
267
+
NodePass supports TCP traffic tunneling by default. The `notcp` parameter allows you to disable TCP support when only UDP traffic needs to be handled, which can reduce resource usage and simplify configuration.
268
+
269
+
-`notcp`: TCP support control (default: 0)
270
+
- Value 0: TCP support enabled - both TCP and UDP traffic will be tunneled
271
+
- Value 1: TCP support disabled - only UDP traffic will be tunneled, TCP connections are ignored
272
+
- Applies to both client and server modes
273
+
- When disabled, TCP-related resources (buffers, connections, sessions) are not allocated
-**UDP-Only Services**: Disable TCP when tunneling only UDP-based applications
292
+
-**Resource Optimization**: Reduce memory and CPU usage by avoiding TCP processing overhead
293
+
-**Security**: Prevent TCP-based attacks or unwanted traffic in restricted environments
294
+
-**Simplified Configuration**: Easier setup when TCP tunneling is not required
295
+
-**Network Isolation**: Isolate TCP and UDP traffic handling for better control
296
+
297
+
**Important Notes:**
298
+
- When TCP is disabled, any TCP connections sent to the tunnel will be silently dropped
299
+
- Existing TCP sessions will be terminated when switching to notcp=1
300
+
- TCP buffer pools and session management are disabled when notcp=1
301
+
265
302
## UDP Support Control
266
303
267
304
NodePass supports UDP traffic tunneling in addition to TCP. The `noudp` parameter allows you to disable UDP support when only TCP traffic needs to be handled, which can reduce resource usage and simplify configuration.
@@ -373,6 +410,7 @@ NodePass allows flexible configuration via URL query parameters. The following t
373
410
|`rate`| Bandwidth rate limit |`0`| O | O | X |
374
411
|`slot`| Maximum connection limit |`65536`| O | O | X |
375
412
|`proxy`| PROXY protocol support|`0`| O | O | X |
413
+
|`notcp`| TCP support control |`0`| O | O | X |
376
414
|`noudp`| UDP support control |`0`| O | O | X |
377
415
378
416
- O: Parameter is valid and recommended for configuration
@@ -383,6 +421,7 @@ NodePass allows flexible configuration via URL query parameters. The following t
383
421
- For client/server dual-end handshake modes, adjust connection pool capacity (`min`, `max`) based on traffic and resource constraints for optimal performance.
384
422
- Use run mode control (`mode`) when automatic detection doesn't match your deployment requirements or for consistent behavior across environments.
385
423
- Configure rate limiting (`rate`) to control bandwidth usage and prevent network congestion in shared environments.
424
+
- Set `notcp=1` when only UDP traffic needs to be tunneled to reduce resource usage and simplify configuration.
386
425
- Set `noudp=1` when only TCP traffic needs to be tunneled to reduce resource usage and simplify configuration.
387
426
- Log level (`log`) can be set in all modes for easier operations and troubleshooting.
0 commit comments