Řešení konfliktů IP adres mezi interní sítí dockeru zařízení spravovaných SCG a nástrojem SCG Policy Manager

Summary: Pokud je IP adresa zařízení spravovaného bránou Secure Connect Gateway (SCG) ve stejné podsíti jako IP adresa docker0 virtuálního síťového rozhraní kontejnerů Dockeru spuštěných na bráně nebo mostu mezi kontejnery Dockeru, síťová komunikace mezi klientským zařízením a bránou selže. K tomuto chování dochází také u bran Secure Connect Gateway, které mají IP adresu ve stejné podsíti jako IP adresu síťového rozhraní docker0 v řešení Policy Manager for Secure Connect Gateway. Tento článek obsahuje řešení tohoto síťového konfliktu. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Ze spravovaného zařízení s IP adresou ve stejné podsíti, jako je adaptér virtuální sítě docker0 nebo most Dockeru mezi kontejnery:
  • Pokusy o přidání zařízení do brány selžou.
  • Brána nereaguje na požadavky ping. 
  • Brána nereaguje na požadavky telnet. 
  • V protokolech brány se nezobrazují žádné důkazy o pokusech o komunikaci 
Podobně ze SCG s IP adresou ve stejné podsíti, jako má virtuální síťový adaptér docker0 ve Správci zásad pro bránu bezpečného připojení:
  • Pokusy o připojení brány k řešení Policy Manager selžou.
  • Správce zásad z brány nereaguje na požadavky ping. 
  • Správce zásad z brány nereaguje na požadavky telnet přes port 8443. 
  • V protokolech brány nebo Policy Manager se nezobrazují žádné důkazy o pokusech o komunikaci. 

Cause

Instance Dockeru spuštěná na Secure Connect Gateway a Policy Manager používá IP adresu 172.17.0.1 pro interní síťové rozhraní docker0. Zařízení ve stejné podsíti jsou v konfliktu se síťovým rozhraním docker0 v kontextu kontejnerů dockeru spuštěných na bráně Secure Connect Gateway a ve Správci zásad pro bránu Secure Connect Gateway. Neexistují žádné další známky tohoto síťového konfliktu, protože nemá vliv na komunikaci mezi ostatními zařízeními ve stejné podsíti mimo bránu nebo správce zásad.

Pokud by zařízení, které má brána spravovat, mělo mít IP adresu ve stejné podsíti jako instance Dockeru v bráně, dojde ke konfliktu sítě, který zařízení zabrání v jakékoli komunikaci s bránou.

Pokud má mít brána bezpečného připojení, kterou má spravovat server Policy Manager, v kontextu Správce zásad stejnou IP adresu jako rozhraní docker0, dojde ke konfliktu sítě a brána nebude moci komunikovat se Správcem zásad.

Resolution

Poznámka: Řešení spočívá v úpravě IP adresy rozhraní docker0 tak, aby nebylo ve stejné síti jako zařízení spravovaná bránou Secure Connect Gateway, a pro Správce zásad tak, aby rozhraní docker0 nemělo IP adresu ve stejné podsíti jako brána Secure Connect Gateway. Níže uvedený postup platí pro síťové rozhraní docker0 v bráně Secure Connect Gateway, ve správci zásad pro bránu Secure Connect Gateway (SCG) 5.x a ve Správci zásad pro SCG 5.x.
 
  1. Přihlaste se do brány Secure Connect nebo Policy Manager pro bránu Secure Connect Gateway pomocí protokolu SSH nebo konzole virtuálního počítače jako uživatel root.
  2. Potvrďte IP adresu docker0 virtuálního síťového adaptéru:
# ifconfig
Výstup se v podstatě podobá výstupu níže (hardwarová adresa vynechána):
docker0  Link encap:Ethernet  HWaddr <removed> 

               inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0 

               UP BROADCAST MULTICAST  MTU:1500  Metric:1 

               RX packets:0 errors:0 dropped:0 overruns:0 frame:0 

               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 

               collisions:0 txqueuelen:0 

               RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  1. Pokud máte zařízení, které používá stejnou podsíť v IP adrese, nemůže toto zařízení komunikovat s bránou.
Provedení změn:
# cd /etc/docker
  1. Před úpravami si soubor přečtěte, abyste viděli původní obsah. Vypadá v podstatě podobně jako toto:
# cat /etc/docker/dockerdCfg.json 
{ 
  "hosts" : ["unix:///var/run/docker.sock","tcp://0.0.0.0:2375"], 
  "insecure-registries" : ["127.0.0.1:9443","localhost:9443"] 
} 
  1. Zálohujte soubor, který se chystáte upravit:
cp dockerdCfg.json dockerdCfg.json.<year.month.date>
  1. Upravte soubor pomocí vi:
# vi /etc/docker/dockerdCfg.json 
{ 

  "hosts" : ["unix:///var/run/docker.sock","tcp://0.0.0.0:2375"], 
  "insecure-registries" : ["127.0.0.1:9443","localhost:9443"],
  "bip": "10.10.10.1/24"  

} 

Note the following:

1. A comma must be inserted at the end of the 2nd line, after 9443"]
2. The bip line should be typed exactly as you see it, with an IP address and subnet mask of your choosing, with a subnet that does not conflict with any devices on your network that will be managed by the gateway.
3. The bip line sets the IP address of the internal docker network interface identified as "docker0".
3. For readability, the first quote mark on the bip line should line up with the previous line and quote mark.

After edits are complete, run:

# systemctl restart docker

Run ifconfig again to verify the IP address of the docker0 network adapter. 

----

The remaining steps below should not be necessary in most cases. If after completing the above steps, you still do not have connectivity, continue with the steps below.

The SAE to SRS Network Bridge

In this section, we will modify the Docker bridge between the sae and srs containers.

Change BridgeSubnet value in esrshost.conf, modify this file below command:
vi /etc/esrshost.conf

Now we will change BridgeSubnet value with the desired IP address.
See the example below:

IpAddress=xx.xx.xx.xxx
MacAddress=xx:xx:xx:xx
TimeZone=US/Central
HypervisorType="VMware Virtual Platform"
OperatingSystem="SUSE Linux Enterprise Server xx SPx"
Environment=INTPROD
HostName=linux
Version=x.xx.xx.xx
BridgeSubnet=172.28.0.1/29
OSPatchVersion=x

Ensure to Save the above file, you can use.

List the bridges:

docker network ls

# docker network ls
NETWORK ID     NAME             DRIVER    SCOPE
aa670bac1703   bridge           bridge    local
1521cf7b980b   host             host      local
b246dde1c191   none             null      local
d0dc3ac05fc4   sae-srs-bridge   bridge    local

Now we will modify the sae-srs-bridge by disconnecting it, removing it, and replacing it.

Disconnect the sae-srs-bridge in both directions:
docker network disconnect sae-srs-bridge esrsde-app
docker network disconnect sae-srs-bridge saede-app
docker network disconnect sae-srs-bridge esrsalert-app

Remove the bridge:
docker network rm sae-srs-bridge

Recreate the bridge with the desired IP address:
docker network create --driver bridge --subnet <new IP address>/<subnet mask> --opt com.docker.network.bridge.name=sae-srs-bridge sae-srs-bridge

See the example below:
docker network create --driver bridge --subnet 172.28.0.1/29 --opt com.docker.network.bridge.name=sae-srs-bridge sae-srs-bridge

Or, to use default IP, define by name only, example:
docker network create --driver=bridge sae-srs-bridge

Once the network bridge has been created, connect each container to the sae-srs-bridge:
docker network connect sae-srs-bridge esrsde-app
docker network connect sae-srs-bridge saede-app
docker network connect sae-srs-bridge esrsalert-app

Verify your work with the following command:
docker network inspect sae-srs-bridge

Review the output by checking on the following fields:

 "Config": [
                {
                    "Subnet": "172.18.0.1/29"
                }
            ]
        },

 "IPv4Address": "172.18.0.2/29",

run ifconfig again to verify the IP address assigned to docker0.

When the edits are complete, restart the Docker containers:

# systemctl restart docker

Test the new configuration by adding a device to the gateway that previously could not communicate with the gateway. Then open a browser to connect to the gateway. Navigate to Device Management > View to confirm that the new device has been registered.

Additional Information

Správce zásad pro bránu bezpečného připojení má pouze jeden kontejner, a to Policy Manager.

Pokud se zobrazí následující chyba:
unable to configure the Docker daemon with file /etc/docker/dockerdCfg.json: the following directives are specified both as a flag and in the configuration file: bip: (from flag: 172.17.0.1/24, from file: 192.168.48.1/24)
Jedná se o konflikt konfigurace, IP mostu je již definována v /etc/sysconfig/docker;

V souboru /etc/sysconfig/docker, odstranit příznak:
--bip=172.17.0.1/24
Ze souboru:
/etc/sysconfig/docker 
## Path           : System/Management
## Description    : Extra cli switches for docker daemon
## Type           : string
## Default        : ""
## ServiceRestart : docker
#
DOCKER_OPTS="--config-file /etc/docker/dockerdCfg.json --bip=172.17.0.1/24"

Affected Products

Secure Connect Gateway, Secure Connect Gateway, Secure Connect Gateway - Virtual Edition
Article Properties
Article Number: 000197558
Article Type: Solution
Last Modified: 04 فبراير 2026
Version:  9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.