You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Connect frps by HTTP PROXY](#connect-frps-by-http-proxy)
28
33
*[Development Plan](#development-plan)
29
34
*[Contributing](#contributing)
30
35
*[Donation](#donation)
36
+
*[AliPay](#alipay)
37
+
*[Paypal](#paypal)
31
38
*[Contributors](#contributors)
32
39
40
+
<!-- vim-markdown-toc -->
41
+
33
42
## What can I do with frp?
34
43
35
44
* Expose any http and https service behind a NAT or firewall to the internet by a server with public IP address(Name-based Virtual Host Support).
@@ -82,6 +91,8 @@ Put **frpc** and **frpc.ini** to your server in LAN.
82
91
auth_token = 123
83
92
84
93
[ssh]
94
+
type = tcp
95
+
local_ip = 127.0.0.1
85
96
local_port = 22
86
97
```
87
98
@@ -139,6 +150,48 @@ Howerver, we can expose a http or https service using frp.
139
150
140
151
6. Now visit your local web service using url `http://www.yourdomain.com:8080`.
141
152
153
+
### Forward DNS query request
154
+
155
+
1. Modify frps.ini, configure a reverse proxy named [dns]:
156
+
157
+
```ini
158
+
# frps.ini
159
+
[common]
160
+
bind_port = 7000
161
+
162
+
[dns]
163
+
type = udp
164
+
listen_port = 6000
165
+
auth_token = 123
166
+
```
167
+
168
+
2. Start frps:
169
+
170
+
`./frps -c ./frps.ini`
171
+
172
+
3. Modify frpc.ini, set remote frps's server IP as x.x.x.x, forward dns query request to google dns server `8.8.8.8:53`:
173
+
174
+
```ini
175
+
# frpc.ini
176
+
[common]
177
+
server_addr = x.x.x.x
178
+
server_port = 7000
179
+
auth_token = 123
180
+
181
+
[dns]
182
+
type = udp
183
+
local_ip = 8.8.8.8
184
+
local_port = 53
185
+
```
186
+
187
+
4. Start frpc:
188
+
189
+
`./frpc -c ./frpc.ini`
190
+
191
+
5. Send dns query request by dig:
192
+
193
+
`dig @x.x.x.x -p 6000 www.goolge.com`
194
+
142
195
## Features
143
196
144
197
### Dashboard
@@ -150,9 +203,12 @@ Configure a port for dashboard to enable this feature:
150
203
```ini
151
204
[common]
152
205
dashboard_port = 7500
206
+
# dashboard's username and password are both optional,if not set, default is admin.
207
+
dashboard_user = admin
208
+
dashboard_pwd = admin
153
209
```
154
210
155
-
Then visit `http://[server_addr]:7500` to see dashboard.
211
+
Then visit `http://[server_addr]:7500` to see dashboard, default username and password are both `admin`.
156
212
157
213

158
214
@@ -164,6 +220,8 @@ Client that want's to register must set a global `auth_token` equals to frps.ini
164
220
165
221
Note that time duration bewtween frpc and frps mustn't exceed 15 minutes because timestamp is used for authentication.
166
222
223
+
Howerver, this timeout duration can be modified by setting `authentication_timeout` in frps's configure file. It's defalut value is 900, means 15 minutes. If it is equals 0, then frps will not check authentication timeout.
224
+
167
225
### Encryption and Compression
168
226
169
227
Defalut value is false, you could decide if the proxy will use encryption or compression whether the type is:
* Debug mode for frpc, prestent proxy status in terminal.
321
435
* Inspect all http requests/responses that are transmitted over the tunnel.
@@ -327,7 +441,9 @@ If `host_header_rewrite` is specified, the Host header will be rewritten to matc
327
441
328
442
Interested in getting involved? We would like to help you!
329
443
330
-
* Take a look at our [issues list](https://github.com/fatedier/frp/issues) and consider submitting a patch
444
+
* Take a look at our [issues list](https://github.com/fatedier/frp/issues) and consider sending a Pull Request to **dev branch**.
445
+
* If you want to add a new feature, please create an issue first to describe the new feature, as well as the implementation approach. Once a proposal is accepted, create an implementation of the new features and submit it as a pull request.
446
+
* Sorry for my poor english and improvement for this document is welcome even some typo fix.
331
447
* If you have some wanderful ideas, send email to [email protected].
332
448
333
449
**Note: We prefer you to give your advise in [issues](https://github.com/fatedier/frp/issues), so others with a same question can search it quickly and we don't need to answer them repeatly.**
@@ -348,5 +464,8 @@ Donate money by [paypal](https://www.paypal.me/fatedier) to my account **fatedie
0 commit comments