nordic-institute/X-Road

Connect a security server to the central server

Fran765 opened this issue · 3 comments

Hello, I am trying to connect a security server that I have running on a PC through docker and I want to connect it to my central server that I have on another PC through LXC containers.

From the PC where I have the central server, I downloaded the "anchor" and sent it to the PC where I have the image of the security server in docker. But when I want to load it in the initial configuration of the security server it tells me the following:
"Configuration source cannot be reached, check source URL in uploaded anchor file".

We exposed ports 4001 and 80 from the PC where the central server is with the following command:
"lxc config device add poc-cs cs80 proxy listen=tcp:0.0.0.0:80 connect=tcp:127.0.0.1:80"
and
"lxc config device add poc-cs cs4001 proxy listen=tcp:0.0.0.0:4001 connect=tcp:127.0.0.1:4001"

I tried loading the "anchor" again after this and it still doesn't work.

We also validate that the PCs are connected to the same internet network.

raits commented

Hello @Fran765!

Could you please clarify the address you configured for the Central Server, and if the Security Server in docker can resolve it to the correct host address (the one of the PC hosting the LXC containers)?

I already solved it, thanks @raits !

I changed the "downloadURL" that generates the anchor and put the IP of the host that has the CS.
Also configure the proxy on port 80 to redirect requests to the CS.

raits commented

Glad to hear that @Fran765!