mirror of
https://github.com/fatedier/frp.git
synced 2025-06-17 17:18:21 +00:00
updated demonstrated_readme
This commit is contained in:
parent
ab62011bc8
commit
57d51e3f62
@ -6,17 +6,17 @@ Reference → [https://github.com/REZ-OAN/frp](https://github.com/REZ-OAN/frp)
|
|||||||
|
|
||||||
Goto your server
|
Goto your server
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
# Step-2 Download release and Extract It (on vm or bm)
|
# Step-2 Download release and Extract It (on vm or bm)
|
||||||
|
|
||||||
Download the latest release from the github repo
|
Download the latest release from the github repo
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Select the one which meet your system architecture
|
Select the one which meet your system architecture
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now hover on the file and `right click` on it select the `copy link address`
|
Now hover on the file and `right click` on it select the `copy link address`
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Now `goto` the `terminal` where you `ssh` to the server
|
|||||||
|
|
||||||
go to preferred folder where you want to download the release
|
go to preferred folder where you want to download the release
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now using `wget` download the release
|
Now using `wget` download the release
|
||||||
|
|
||||||
@ -32,21 +32,21 @@ Now using `wget` download the release
|
|||||||
wget https://github.com/REZ-OAN/frp/releases/download/v0.57.0/frp_0.57.0_linux_amd64.tar.gz
|
wget https://github.com/REZ-OAN/frp/releases/download/v0.57.0/frp_0.57.0_linux_amd64.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
In this directory you will see like this
|
In this directory you will see like this
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now extract the `.tar.gz` file
|
Now extract the `.tar.gz` file
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now `goto` `frp_0.57.0_linux_amd64/` this folder
|
Now `goto` `frp_0.57.0_linux_amd64/` this folder
|
||||||
|
|
||||||
This files will be there
|
This files will be there
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
# Step-3 Running frp-server ( on vm or bm)
|
# Step-3 Running frp-server ( on vm or bm)
|
||||||
|
|
||||||
@ -54,15 +54,15 @@ Now edit the `frps.toml` because we will run the `frp-server` on our `vm` or `bm
|
|||||||
|
|
||||||
We need to specify a `port` on our `vm` or `bm` on which the `frp-server`will listen to
|
We need to specify a `port` on our `vm` or `bm` on which the `frp-server`will listen to
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Using `nano` edit the `bindPort` if you want to
|
Using `nano` edit the `bindPort` if you want to
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
I have edited the port number
|
I have edited the port number
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now run the server
|
Now run the server
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ Now run the server
|
|||||||
./frps -c ./frps.toml
|
./frps -c ./frps.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
# Step-4 Running our codeserver-python (on local machine)
|
# Step-4 Running our codeserver-python (on local machine)
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ docker run -it -p 5000:8080 b25217878034
|
|||||||
|
|
||||||
Your terminal will look like this
|
Your terminal will look like this
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
# Step-5 Running frp-client (on our local machine)
|
# Step-5 Running frp-client (on our local machine)
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ Firstly do every thing in done in the **Step-2 ,** after doing all of those thin
|
|||||||
|
|
||||||
Edit the `frpc.toml`
|
Edit the `frpc.toml`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Here, `serverAddr` refers to the server from where you locally running service will be **exposed**
|
Here, `serverAddr` refers to the server from where you locally running service will be **exposed**
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ And `remotePort` refers to the `port`in the `remoteServer` in which our service
|
|||||||
|
|
||||||
Edit the `serverPort` to `4848` and `localPort` to `5000` and set `remotePort` to `7050` using `nano`
|
Edit the `serverPort` to `4848` and `localPort` to `5000` and set `remotePort` to `7050` using `nano`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now run the `frp-client`
|
Now run the `frp-client`
|
||||||
|
|
||||||
@ -126,34 +126,34 @@ Now run the `frp-client`
|
|||||||
|
|
||||||
Go to cloudflare dashboard select the `Zero Trust`
|
Go to cloudflare dashboard select the `Zero Trust`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Then open networks drop down and select the tunnels
|
Then open networks drop down and select the tunnels
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now click on `create tunnel`
|
Now click on `create tunnel`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Select the recommended connector
|
Select the recommended connector
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Then click on `next` and then give a name i choose `test-frp`
|
Then click on `next` and then give a name i choose `test-frp`
|
||||||
|
|
||||||
Now choose connector environment , i have chosen `docker`
|
Now choose connector environment , i have chosen `docker`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now copy the connector `command` and run it on `detach` mode on your `server` ( in our case 103.174.50.21)
|
Now copy the connector `command` and run it on `detach` mode on your `server` ( in our case 103.174.50.21)
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now select the domain and subdomain , and the url server `ip_address:remotePort`
|
Now select the domain and subdomain , and the url server `ip_address:remotePort`
|
||||||
|
|
||||||
.png)
|
.png)
|
||||||
|
|
||||||
Now hit the URL `test-frp.poridhi.io/?folder=/app/` will see
|
Now hit the URL `test-frp.poridhi.io/?folder=/app/` will see
|
||||||
|
|
||||||
.png)
|
.png)
|
Loading…
x
Reference in New Issue
Block a user