hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
294 stars 24 forks source link

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

Open hhstore opened 4 months ago

hhstore commented 4 months ago

📖 Abstract:

💯 Related:

域名解析:

hhstore commented 4 months ago

内网穿透方案:

cpolar

特点:

frp:

rathole:

cpolar

ngrok

hhstore commented 4 months ago

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 commented 4 months ago

搭配 Nginx 做反向代理:

hhstore commented 4 months ago

主机远程控制方案:

讨论:

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 commented 4 months ago

1

hhstore commented 4 months ago

1

hhstore commented 4 months ago

1