# Using only one public IP for my stake pool

**URL:** https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940
**Category:** Stake Pool Security
**Created:** [30 June 2021 10:23 UTC](https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940 "2021-06-30T10:23:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Josema](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Josema](https://forum.cardano.org/u/Josema)
#### Post date: [30 June 2021 10:23 UTC](https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940/1 "2021-06-30T10:23:50Z")

</div>

As a basic stake pool, I have one relay and one block-producer. So this is my setup:

```auto
// relay topology
{
    "Producers": [
      {
        "addr": "relays-new.cardano-mainnet.iohk.io",
        "port": 3001,
        "valency": 2
      }
    ]
  }

```

And

```auto
// block-producer topology
{
  "Producers": [
    {
      "addr": <RELAY PUBLIC IP ADDRES>,
      "port": 3001,
      "valency": 2
    }
  ]
}

```

Not sure if this is correct or I should include the block-producer IP in the relay topology. But this way the IP of my block-producer is not exposed. Maybe this is the reason why the Processes TX and Mempool TX is always 0.

**relay:**  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/c/e/cee8b751521a2ff63585b44c8b6cb6f8b7b6a792.png)

**block-producer:**  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/f/0/f0099b6ec9455ce29fda774d128951634905b0ad.png)

---

<div class="post-metadata">

### Author: ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)
#### Post date: [30 June 2021 11:14 UTC](https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940/2 "2021-06-30T11:14:43Z")

</div>

Not ok, u will need to set:

- for the producer:

1. in the topology file add only your relay IP + port
2. u will need to allow in fw only the relay  
sudo ufw allow proto tcp from Relay\_IP to any port Producer\_CNODE\_port

- for the Relay

1. U will need to use topology updater script and add the Block Producer IP + port inside the script (depending of what guide u followed to setup the pool)

!!! The topology updater must run all the time once/hour

1. In fw u will need to keep the port open for any

If all above the steps were made correct then:

- on Producer u should see ur relay to IN/OUT peers
- on Relay u should see the Producer to OUT/IN peers + other public nodes

!!! To see the peers infos press I in glive

- on both servers u will have tx processed

---

<div class="post-metadata">

### Author: ![Josema](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Josema](https://forum.cardano.org/u/Josema)
#### Post date: [30 June 2021 12:30 UTC](https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940/3 "2021-06-30T12:30:10Z")

</div>

Seems like ok now.

**relay:**  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/b/7/b71f0b23e678d8974fab6f450810d7338f2aab44.png)  
**producer:**  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/e/0/e070d7302c4b2d57d056ab858af55314f2231a2c.png)

---

<div class="post-metadata">

### Author: ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)
#### Post date: [30 June 2021 12:31 UTC](https://forum.cardano.org/t/using-only-one-public-ip-for-my-stake-pool/65940/4 "2021-06-30T12:31:31Z")

</div>

yeah, now is fine, as long you are processing tx is fine, and also the producer should start as a core node, with kes expiration, blocks infos, etc
