File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,15 @@ There are currently two builtin loggers:
11
11
12
12
` log_http ` : sends a 200 OK back on every request.
13
13
14
- Additionally, there are two mangling behaviours :
14
+ Additionally, there are three mangling behaviors :
15
15
16
16
` rewrite ` : Rewrites the incoming packet's destination port
17
17
18
18
` proxy ` : Creates a TCP proxy for the connection to the specified target (can be an IP address, host name, or docker container)
19
19
20
+ ` user_conn ` : When using ** freki** as a library, invoke a user-specified
21
+ callback with a ` net.Conn `
22
+
20
23
```
21
24
$ ./bin/freki --help
22
25
Usage:
@@ -61,6 +64,10 @@ rules:
61
64
# log http requests on 80 and 8080
62
65
- match : tcp port 80 or tcp port 8080
63
66
type : log_http
67
+ # pass connections on 7000 through 8000 to a registered handler called 'echo'
68
+ - match : tcp portrange 7000-8000
69
+ type : conn_handler
70
+ target : echo
64
71
# drop (no FIN, nothing!)
65
72
- match : tcp portrange 5000-5010
66
73
type : drop
You can’t perform that action at this time.
0 commit comments