# Sentry Node Questions

**URL:** <https://forum.scrt.network/t/sentry-node-questions/2034>\
**Category:** Secret Nodes\
**Created:** [September 6, 2020, 1:12am UTC](https://forum.scrt.network/t/sentry-node-questions/2034 "2020-09-06T01:12:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enigmafan1](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@enigmafan1](https://forum.scrt.network/u/enigmafan1)\
**Post date:** [September 6, 2020, 1:12am UTC](https://forum.scrt.network/t/sentry-node-questions/2034/1 "2020-09-06T01:12:17Z")

</div>

I have some basic questions about Sentry Node architecture, which is a new concept for me. I’m interested in trying to protect my validator from DDoS and I am looking to get a better understanding about the proper way to set up and configure sentry nodes for mainnet after the secret contract upgrade this month.

1. Do all sentry nodes need to have SGX enabled or is that not required? If SGX is required, are the acceptable values for the `isvEnclaveQuoteStatus` field the same as for a validator?

2. How does one determine the optimum number of sentry nodes to include in the validator’s `persistent_peers` list? Is more sentry nodes always better (other than the increased cost to operate)?

3. Would the validator continue to function properly as long as there is at least one sentry node that is up and running? In other words, would a DDoS attack have to disable all sentry nodes in the `persistent_peers` list simultaneously in order to actually disable the validator node?

4. In the event of a DDoS attack on a validator’s sentry nodes what is the actual process to respond to the attack? Would one simply shut down the sentry under attack and spin up a new sentry node with a different IP address? Spinning up a new node can take hours - are there any methods to reduce the deployment time?

5. Are there any plans for community sentry nodes perhaps run by the Secret Foundation or Enigma, which would be available to all validators on the network? This would ensure that all validators including those who may not be able to afford running their own sentry node would be able to benefit from the Sentry Node architecture and it would help strengthen the network overall.

---

<div class="post-metadata">

**Author:** ![Wolfsong](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/wolfsong/32/718_2.png) [@Wolfsong](https://forum.scrt.network/u/Wolfsong)\
**Post date:** [September 7, 2020, 4:06am UTC](https://forum.scrt.network/t/sentry-node-questions/2034/3 "2020-09-07T04:06:26Z")

</div>

When creating a Sentry Node it states ---- persistent\_peers =[list of sentry nodes]  
where can I find this list?

And should I make changes for both validator and sentry node on my config.toml?

Thank you

---

<div class="post-metadata">

**Author:** ![SecretDog](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/secretdog/32/733_2.png) [@SecretDog](https://forum.scrt.network/u/SecretDog)\
**Post date:** [September 8, 2020, 9:52pm UTC](https://forum.scrt.network/t/sentry-node-questions/2034/4 "2020-09-08T21:52:59Z")

</div>

Your validator will try to maintain a permanent connection with all the peers in your `persistent_peers` list during its runtime. It is a comma-separated list of `nodeid@ip:port` values, and is something you have to create yourself (based on which nodes you trust in the network).

Yes, you will need to edit the config.toml file for both the validator and sentry node. Here is a summary showing the proper configuration for each config.toml:

**Validator**  
`pex = false`  
`persistent_peers = [list of sentry nodes]`  
`addr_book_strict = false` (if sentry nodes are on private network/non-routable IP address)

**Sentry**  
`pex = true`  
`persistent_peers = <validator-node-id>@ip:port`  
`private_peer_ids = <validator-node-id>`  
`addr_book_strict = false` (if validator is on private network/non-routable IP address)

You can get the node ID for your validator/sentry with the following command: `secretd tendermint show-node-id`

If you need any additional background on the sentry node architecture, I would refer to [this post](https://forum.cosmos.network/t/sentry-node-architecture-overview/454) on the Cosmos forum.
