V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
A3m0n
V2EX  ›  问与答

Docker 安装 Adminer 后,通过 Frp 内网穿透后无法打开

  •  1
     
  •   A3m0n · 2022-07-05 10:29:20 +08:00 · 787 次点击
    这是一个创建于 891 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统是 unraid 6.10.2 ,通过应用市场安装 Adminer 后,在局域网内可以直接访问,并能正常使用。但是当我通过 Frp 内网穿透后却无法访问,其他的服务通过相同配置后都可以访问,只有 Adminer 不行。

    Frp 配置:

    [Adminer]
    type = tcp
    local_ip = 127.0.0.1
    local_port = 3388
    remote_port = 3388
    

    外网请求时的 Adminer 容器日志:

    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36312 Accepted
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36312 [200]: GET /
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36312 Closing
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36326 Accepted
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36328 Accepted
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36340 Accepted
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36326 [200]: GET /adminer.css?v=1882297936
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36326 Closing
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36340 [200]: GET /?file=default.css&version=4.8.1
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36340 Closing
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36328 [200]: GET /?file=functions.js&version=4.8.1
    [Tue Jul  5 02:24:47 2022] [::ffff:172.17.0.1]:36328 Closing
    

    局域网请求时候的 Adminer 容器日志:

    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6634 Accepted
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6634 [200]: GET /
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6634 Closing
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6636 Accepted
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6636 [200]: GET /?file=default.css&version=4.8.1
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6636 Closing
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6635 Accepted
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6635 [200]: GET /adminer.css?v=1882297936
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6635 Closing
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6637 Accepted
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6637 [200]: GET /?file=functions.js&version=4.8.1
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6637 Closing
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6638 Accepted
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6638 [200]: GET /?file=functions.js&version=4.8.1
    [Tue Jul  5 02:26:15 2022] [::ffff:192.168.1.225]:6638 Closing
    [Tue Jul  5 02:26:19 2022] [::ffff:192.168.1.225]:6643 Accepted
    [Tue Jul  5 02:26:19 2022] [::ffff:192.168.1.225]:6643 [200]: POST /?script=version
    [Tue Jul  5 02:26:19 2022] [::ffff:192.168.1.225]:6643 Closing
    
    2 条回复    2022-07-05 13:37:39 +08:00
    jifengg
        1
    jifengg  
       2022-07-05 13:18:53 +08:00
    “不行”是具体指的啥?
    查一下 adminer 的日志,看看是不是来源 ip 限制了,是否 adminer 监听的 ip 是 192.168.xxx ,是的话可以改成 0.0.0.0 试试。
    A3m0n
        2
    A3m0n  
    OP
       2022-07-05 13:37:39 +08:00
    @jifengg 就是其他的服务通过 Frp 内网穿透后是可以正常使用的,但是唯独 Adminer 无法通过 Frp 内网穿透后访问。Adminer 的日志我已经贴在正文中了,我感觉也是来源 IP 被限制了。这个监听的 IP 应该在哪里修改呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2377 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:33 · PVG 23:33 · LAX 07:33 · JFK 10:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.