Linux部署FRP内网穿透
00 分钟
2024-12-4
2025-2-23
类型
状态
日期
链接
摘要
标签
分类
图标
密码
个别场景下没有公网IP地址,又想互联网访问,就需要用到这个了,抽个时间部署下并且记录下。

1 前期准备

  1. 1台有公网地址的VPS服务器,操作系统是主流Linux系统,比如Ubuntu等。
  1. 准备程序,这里推荐https://github.com/VaalaCat/frp-panel

2 开始部署

  1. 使用工具登录VPS服务器上。
  1. 下载安装程序
3. 设置执行权限
notion image
  1. 配置systemd启动文件
  1. 启动程序
  1. 检查程序

3 登录面板

  1. 使用{公网IP:9000}在浏览器上访问。
    1. notion image
  1. 在左下角点击注册,第一个注册上的则是管理员。
    1. notion image
  1. 注册后使用管理员身份登录面板。
    1. notion image
      notion image

4 配置面板

  1. 初始化当前面板所在节点服务,在“服务器”页面右边三个点,点击“修改服务端配置”,打开服务端配置页面后。
    1. notion image
  1. 打开“高级模式”开关,在“节点default的备注”位置填写节点名称后点击“提交”。
    1. notion image
  1. 检查配置状态。
    1. notion image

5 创建穿透

  1. 创建客户端
    1. notion image
  1. 修改客户端配置,新建隧道。
    1. notion image
      notion image
      notion image
      • 本地端口:需要穿透的端口号。
      • 转发地址:需要穿透的内网地址,可以是127.0.0.1也可以是客户端所在电脑能连接的其他网络。
      • 远端端口:服务器侧映射端口号。
      notion image
  1. 查看配置是否生效
    1. notion image
  1. 安装客户端
    1. notion image
  1. 查看运行命令
    1. notion image
  1. 启动客户端
    1. notion image
      notion image
  1. 验证
    1. notion image
      notion image

免责声明:
  • 笔者水平有限,尽管经过多次验证和检查,尽力确保内容的准确性,但仍可能存在疏漏之处。敬请业界专家大佬不吝指教。
  • 本文所述内容仅通过实战环境验证测试,读者可学习、借鉴,但严禁直接用于生产环境由此引发的任何问题,作者概不负责
上一篇
Notion+Cloudflare 免费自定义域名部署网站
下一篇
华为云体验ComfyUI一键脚本

评论
Loading...