Skip to content

Commit b8cdce0

Browse files
committed
Update readme
Signed-off-by: kung-foo <github@jonathan.camp>
1 parent 4933fd6 commit b8cdce0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ There are currently two builtin loggers:
1111

1212
`log_http`: sends a 200 OK back on every request.
1313

14-
Additionally, there are two mangling behaviours:
14+
Additionally, there are three mangling behaviors:
1515

1616
`rewrite`: Rewrites the incoming packet's destination port
1717

1818
`proxy`: Creates a TCP proxy for the connection to the specified target (can be an IP address, host name, or docker container)
1919

20+
`user_conn`: When using **freki** as a library, invoke a user-specified
21+
callback with a `net.Conn`
22+
2023
```
2124
$ ./bin/freki --help
2225
Usage:
@@ -61,6 +64,10 @@ rules:
6164
# log http requests on 80 and 8080
6265
- match: tcp port 80 or tcp port 8080
6366
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
6471
# drop (no FIN, nothing!)
6572
- match: tcp portrange 5000-5010
6673
type: drop

0 commit comments

Comments
 (0)