Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
benyamin218118 committed Feb 28, 2023
2 parents e4f456b + 948d91d commit e284f78
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ its a simple tcp forwarding tool

## Download and usage :
```
wget github.com/benyamin218118/tcpforwarder/tcpforwarder
wget https://github.com/benyamin218118/tcpforwarder/raw/main/tcpforwarder
chmod +x ./tcpforwarder
./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT
Expand All @@ -17,9 +17,9 @@ chmod +x ./tcpforwarder
- **our usa vps ip address is 44.55.66.77 and that service port is 9090 as mentioned before**
- **so we need to replace the variables in `./tcpforwarder -lPort LISTEN_PORT -rHost REMOTE_SERVER_HOST -rPort REMOTE_SERVER_PORT` and it becomes** :


(don't forget, we need to run this on our ir vps)
> ./tcpforwarder -lPort 8080 -rHost 44.55.66.77 -rPort 9090
no we can use the ir server ip address and 8080 port instead of 44.55.66.77 and 9090 for connecting to that service running on the usa vps.

` client > x.x.x.x:8080 -> 44.55.66.77:9090`
` client > x.x.x.x:8080 -> 44.55.66.77:9090`

0 comments on commit e284f78

Please sign in to comment.