mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2145] Why logs "do http proxy request error: no such domain:"? #1709
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GF-Huang on GitHub (Dec 9, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2145
[REQUIRED] hat version of frp are you using
Version:
0.34.3[REQUIRED] What operating system and processor architecture are you using
OS:
client: Win10+server: Centos 7.6 by docker composeCPU architecture:
x64[REQUIRED] description of errors
I want to make my home computer acts a http proxy to access public internet. In other words, I use my home computer as a http proxy, so I can use my home IP address to do something.
confile
frps:
frpc:
docker-compose.yml
log file
frps:
frpc:
Steps to reproduce the issue
mydomain.com:8080as http proxy, In my case I use my iPhone.baidu.comSupplementary information
Can you guess what caused this issue
Checklist:
@yuyulei commented on GitHub (Dec 10, 2020):
you make
www.baidu.com(dns or /etc/hosts) resolved to the address of frps binding ? Then frps know nothing aboutwww.baidu.com, because the domain is not in its configuration.@GF-Huang commented on GitHub (Dec 10, 2020):
No, I want the frpc acts a standard http proxy server, but it is behind NAT. Is this possible?
My intent is that using my home IP address to access some website when I'm not at home.
@yuyulei commented on GitHub (Dec 10, 2020):
frp has no plan to support "standard http proxy", because some tools(like nginx)is good enough.
for your purpose, your can try frpc + nginx, just handle nginx as a tcp service, ref: https://github.com/fatedier/frp#access-your-computer-in-lan-by-ssh.
@fatedier commented on GitHub (Dec 10, 2020):
@GF-Huang Try
mydomain.com:6000@GF-Huang commented on GitHub (Dec 10, 2020):
What the mean?
@yuyulei commented on GitHub (Dec 10, 2020):
"[http_proxy]" is tcp proxy, it make frps listens port: 6000 and put traffic to frpc's plugin: http_proxy.
"vhost_http_port" is for http proxy.
so the two will not share traffic, you just try
@GF-Huang commented on GitHub (Dec 10, 2020):
What's the equivalent of the follow command in browser? I set proxy explicit in my browser. The
ba***.topis mymydomain.comin above config.@yuyulei commented on GitHub (Dec 10, 2020):
8080 -> 6000, use
remote_port.@GF-Huang commented on GitHub (Dec 10, 2020):
It works! Thank you all. 🌹
@GF-Huang commented on GitHub (Dec 10, 2020):
By the way, what difference between
vhost_http_portandremote_portof[http_proxy]?It's hard to understand.