Skip to content

Commit 2875fa1

Browse files
Add client setup
1 parent d198ce3 commit 2875fa1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

example/reverse-tunneling-authenticated.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,24 @@ The corresponding `authfile` might look like this:
2424
}
2525
```
2626

27+
## Client
28+
29+
Setup a chisel client to receive bounced-down traffic and forward it to the webserver running on `localhost:80`
30+
31+
```bash
32+
#!/bin/bash
33+
34+
chisel client \
35+
36+
# ⬇️ Authenticates user "foo" with password "bar"
37+
--auth="foo:bar" \
38+
39+
# ⬇️ Connects to chisel relay server example.com
40+
# listening on the default ("fallback") port, 8080
41+
example.com \
42+
43+
# ⬇️ Reverse tunnels port 80 on the relay server to
44+
# port 80 on your localhost. So you can expose
45+
# that web server running locally to the internet.
46+
R:80:localhost:80
47+
```

0 commit comments

Comments
 (0)