长亭百川云 - 技术讨论

长亭百川云

技术讨论长亭漏洞情报库IP 威胁情报SLA在线工具
热门产品
雷池 WAF 社区版
IP 威胁情报
网站安全监测
百川漏扫服务
云堡垒机
百川云
技术文档
开发工具
长亭漏洞情报库
网安百科
安全社区
CT STACK 安全社区
雷池社区版
XRAY 扫描工具
长亭科技
长亭科技官网
万众合作伙伴商城
长亭 BBS 论坛
友情链接
关注或联系我们
添加百川云公众号,移动管理云安全产品
咨询热线:
4000-327-707
百川公众号
百川公众号
百川云客服
百川云客服

Copyright ©2024 北京长亭科技有限公司
icon
京ICP备2024055124号-2

内网主机通过代理上网,该如何设置

发布于 7 个月前

# 雷池 WAF
问题咨询

发布于 7 个月前

头像

TIME

更新于 7 个月前

0

0

看文档说 safeline-mgt 要上网,我就在docker-compose.yml中添加了代理。

mgt:
    container_name: safeline-mgt
    restart: always
    image: ${IMAGE_PREFIX}/safeline-mgt${REGION}${ARCH_SUFFIX}:${IMAGE_TAG:?image tag required}
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${SAFELINE_DIR}/resources/mgt:/app/data
      - ${SAFELINE_DIR}/logs/nginx:/app/log/nginx:z
      - ${SAFELINE_DIR}/resources/sock:/app/sock
      - /var/run:/app/run
    ports:
      - ${MGT_PORT:-9443}:1443
    healthcheck:
      test: curl -k -f https://localhost:1443/api/open/health
    environment:
      - MGT_PG=postgres://safeline-ce:${POSTGRES_PASSWORD}@safeline-pg/safeline-ce?sslmode=disable
      - http_proxy=http://10.22.16.29:8080
      - https_proxy=http://10.22.16.29:8080
      - no_proxy=localhost,127.0.0.1,10.*,::1

但是还是报错。

2025/05/13 22:43:23 [error] 13#13: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.10, server: , request: "POST /inner/waiting/collect HTTP/1.1", upstream: "http://[::1]:8000/inner/waiting/collect", host: "safeline-mgt"
2025/05/13 22:43:23 [warn] 13#13: *15 upstream server temporarily disabled while connecting to upstream, client: 192.168.0.10, server: , request: "POST /inner/waiting/collect HTTP/1.1", upstream: "http://[::1]:8000/inner/waiting/collect", host: "safeline-mgt"
2025/05/13 22:43:23 [error] 13#13: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.10, server: , request: "POST /inner/waiting/collect HTTP/1.1", upstream: "http://127.0.0.1:8000/inner/waiting/collect", host: "safeline-mgt"
2025/05/13 22:43:23 [warn] 13#13: *15 upstream server temporarily disabled while connecting to upstream, client: 192.168.0.10, server: , request: "POST /inner/waiting/collect HTTP/1.1", upstream: "http://127.0.0.1:8000/inner/waiting/collect", host: "safeline-mgt"
2025/05/13 22:43:25 [error] 15#15: *18 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.7, server: , request: "GET /inner/slave_mode HTTP/1.1", upstream: "http://[::1]:8000/inner/slave_mode", host: "192.168.0.4"
2025/05/13 22:43:25 [warn] 15#15: *18 upstream server temporarily disabled while connecting to upstream, client: 192.168.0.7, server: , request: "GET /inner/slave_mode HTTP/1.1", upstream: "http://[::1]:8000/inner/slave_mode", host: "192.168.0.4"
2025/05/13 22:43:25 [error] 15#15: *18 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.7, server: , request: "GET /inner/slave_mode HTTP/1.1", upstream: "http://127.0.0.1:8000/inner/slave_mode", host: "192.168.0.4"
2025/05/13 22:43:25 [warn] 15#15: *18 upstream server temporarily disabled while connecting to upstream, client: 192.168.0.7, server: , request: "GET /inner/slave_mode HTTP/1.1", upstream: "http://127.0.0.1:8000/inner/slave_mode", host: "192.168.0.4"
2025/05/13 22:43:27 [ERROR] detect/skynet.go:134 Get "http://safeline-fvm/skynetinfo": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
panic: failed to init models: initSkynetDisableRule Error: Get "http://safeline-fvm/skynetinfo": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

goroutine 1 [running]:
main.main()
        /work/main.go:40 +0x199

不知道什么原因,主机必须要通过代理才能上网。

​
头像
相关贴子
#
建议为社区版本添加深色模式支持
#
希望雷池添加可以生成原服务器域名证书的功能
#
雷池规则广场:拦截常见扫描器
#
certd创建自动化流水线使用letsencrypt申请证书并更新雷池waf证书
#
一个站点,nginx 里面需要多个location不同判断,如何自定义