Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
benyamin218118 committed May 1, 2023
1 parent dbec86a commit cc017dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,18 @@ chmod +x ./tcpforwarder
./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT
```

## examples :
## Simple Usage :
```
forward incoming tcp connection on port 4444 to 1.2.3.4 port 80 :
$ ./tcpforwarder -lPort 4444 -rHost 1.2.3.4 -rPort 80
```

## Forward a Port Range :
```
forward incoming tcp connection on port range 4444-5555 to example.com 4444-5555 :
$ ./tcpforwarder -lPort 4444-5555 -rHost example.com
```
## example :

**we want to forward incoming tcp connections from our ir vps to a service running on port 9090 on a usa vps**
- first we need to choose a listen port for the ir vps like 8080 ( we will accept the incoming tcp connections on it )
Expand Down
Binary file modified tcpforwarder
Binary file not shown.

0 comments on commit cc017dc

Please sign in to comment.