Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse Proxy: Frp - expose a local server to the Internet #428

Open
hhstore opened this issue Jun 28, 2024 · 7 comments
Open

Reverse Proxy: Frp - expose a local server to the Internet #428

hhstore opened this issue Jun 28, 2024 · 7 comments

Comments

@hhstore
Copy link
Owner

hhstore commented Jun 28, 2024

📖 Abstract:

  • ✅ 内网穿透(Frp) 使用教程.

💯 Related:

域名解析:

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

内网穿透方案:

cpolar

特点:

  • 🌟🌟🌟🌟🌟
  • 免费版: 4 个端口, 随机 2 级域名
  • 易用性很高.
  • 付费版, 年付, 很便宜. 是可以用的.
  • 门槛低, 如果懒得自己搭 FRP, 很推荐这款.( FRP 遇到绑 3 级域名 问题, 无法解决)

frp:

  • https://github.com/fatedier/frp
  • 🌟🌟🌟🌟🌟
  • 首选自建方案, 免费+开源.
  • 配置不算复杂. 小问题是: 不支持 3 级域名绑定. 只能 2 级域名. (只能裸 IP + Port)
  • go 实现.

rathole:

cpolar

ngrok

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

Frp 配置教程:

安装 frp:

下载:

安装脚本:

# 国内:
wget https://gitee.com/mvscode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install


# 国外:
wget https://raw.githubusercontent.com/mvscode/frps-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

内网 web 服务:

serverAddr = "x.x.x.x"
serverPort = 7000

[[proxies]]
name = "web"
type = "http"
localPort = 80
customDomains = ["www.yourdomain.com"]

[[proxies]]
name = "web2"
type = "http"
localPort = 8080
customDomains = ["www.yourdomain2.com"]

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

搭配 Nginx 做反向代理:

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

主机远程控制方案:

  • 主机远程控制
  • Mac 控制 Windows, Android 等

讨论:

RustDesk

微软 RDP

向日葵(花生壳)

ToDesk

Ubuntu 22 远程问题:

sudo systemctl stop todeskd.service

sudo mv /opt/todesk/config/config.ini /opt/todesk/config/config.ini.bak

sudo systemctl start todeskd.service


# 卸载:
sudo apt-get remove --purge todesk

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

1

2 similar comments
@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

1

@hhstore
Copy link
Owner Author

hhstore commented Jun 28, 2024

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant