English 中文(简体)
cker-comp:地方网络无法使用的因特网后面的图像
原标题:docker-compose: images behind VPN unavailable in local network

我有四处 services子。 vpn_img1 and vpn_img2 are after a vpn (configued as below),shop_img1 and Host_img2 are not.

我能够通过<代码>http:// localhost:<port_num>,在东道机器上获得所有4个成像服务,但只能从当地网络的其他机器上获得东道方的图像;蒸汽_img图像。 我也取得了同样的结果,看到了其他类似的假象。 谁知道为什么? 是否在登机服务上设置了任何条件,使人们能够接触 v球图像? 我是否还需要做些什么才能获得这种机会?

此外,东道方_img1需要与 v-imgs交谈,但东道方_img2没有。

version: "3.4"
services:    
  vpn:
    container_name: vpn
    image: ghcr.io/bubuntux/nordlynx
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
    environment:
      - PRIVATE_KEY=xxx
      - QUERY=filters[country_id]=228
      - NET_LOCAL=192.168.1.0/24
      # - ALLOWED_IPS=192.168.0.0/24
    ports:
      - 1234:1234 # vpn_img1
      - 2345:2345 # vpn_img2
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1

  vpn_img1:
    container_name: vpn_img1
    image: vpn_img1
    restart: unless-stopped
    network_mode: service:vpn # run on the vpn network
    depends_on:
      - vpn

  vpn_img2:
    container_name: vpn_img2
    image: vpn_img2
    restart: unless-stopped
    network_mode: service:vpn # run on the vpn network
    depends_on:
      - vpn

  host_img1:
    container_name: host_img1
    image: host_img1
    restart: unless-stopped
    network_mode: host

  host_img2:
    container_name: host_img2
    image: host_img2
    restart: unless-stopped
    network_mode: host
最佳回答
问题回答

暂无回答




相关问题
vpn connection and ip problem

i have one application who use to connect to server via VPN. i can put server name or Ip in application to connect to server. If i put IP & Connect to VPN (this work fine except if any other ...

iPhone - Send VPN traffic for a specific URL

I am building a iPhone web based app for our execs to view sales data. The app goes over SSL with a typical login page that sets a cookie for the day. Since the info is sensitive and we have a VPN at ...

SQL Server VPN Replication

I have a requirement to use Sql replication from a sql server 2005 instance to a Sql 2000 instance over a vpn. The vpn is permanent between the 2 sites and there are only a few tables that need ...

How to modify struct sk_buff

I have to write a vpn module. First of all, I have wrote a kernel module that modifies all the incoming and outgoing TCP packets. It uses netfilter hooks. For the incoming packets, I have modified the ...

How do odbc (or mysql) resources work in php?

When you run a query like so: $query = "SELECT * FROM table"; $result = odbc_exec($dbh, $query); while ($row = odbc_fetch_array($result)) { print_r($row); } Does the resource stored in $result ...

How to Get the current VPN Windows Identity

I have a console application that calls a WCF service on a remote domain. The WCF service is uses Windows credential type for the transport and message credential types. The WCF service is ...

热门标签