Using relay-topology_pull.sh with private IP address on BP

Hello,

I am using private IP addresses between my relays and block producers so I don’t have to expose my BP to the internet. When preparing to run the relay-topology_pull.sh script from CoinCashew, it asks me to enter the public IP address of my block producing node. Since I’m not using the public IP address, should I just enter the private IP address?

Jamie

Hi @LongRib78!

The relay-topology_pull.sh from CoinCashew is indeed asking for your BP IP. Since you’ve set up a private network in which both your relay(s) and BP are, you can use the private IP in the script because it’s running in your relay(s) which can access the BP through the private network.

So you can use it like that (if you’re on mainnet and 10.0.0.1 is the BP private IP):

###
### On relaynode1
###
cat > $NODE_HOME/relay-topology_pull.sh << EOF
#!/bin/bash
BLOCKPRODUCING_IP=10.0.0.1
BLOCKPRODUCING_PORT=6000
curl -s -o $NODE_HOME/${NODE_CONFIG}-topology.json "https://api.clio.one/htopology/v1/fetch/?max=20&customPeers=\${BLOCKPRODUCING_IP}:\${BLOCKPRODUCING_PORT}:1|relays-new.cardano-mainnet.iohk.io:3001:2"
EOF
2 Likes