Add the scan speed option for service discovery
This commit is contained in:
1 parent
0bd7247766
commit
7317053f25
4 files changed
+10
-1
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ The add-on uses host networking, so a resource can also point at any address on
|
||||
|
||||
## Suggest services (optional)
|
||||
|
||||
Turn on **Suggest services** and Bamboo reports the services listening on Home Assistant's machine to Hammerhead, so you can pick one as a target instead of typing its address. Fill in **Scan subnets** (for example `192.168.1.0/24`) and it also looks for services on those networks, trying the ports in **Scan ports** or a short list of common ones. It is gentle, with a rate limit and a sweep every 15 minutes, and only private networks are accepted. Nothing is exposed until you pick a target. Only scan networks you are allowed to scan.
|
||||
Turn on **Suggest services** and Bamboo reports the services listening on Home Assistant's machine to Hammerhead, so you can pick one as a target instead of typing its address. Fill in **Scan subnets** (for example `192.168.1.0/24`) and it also looks for services on those networks, trying the ports in **Scan ports** or a short list of common ones. It is gentle, with a rate limit (**Scan speed**, 50 connection attempts per second by default) and a sweep every 15 minutes, and only private networks are accepted. Nothing is exposed until you pick a target. Only scan networks you are allowed to scan.
|
||||
|
||||
## Updates
|
||||
|
||||
|
||||
@@ -19,9 +19,11 @@ options:
|
||||
discover: false
|
||||
discover_subnets: ""
|
||||
discover_ports: ""
|
||||
discover_rate: 50
|
||||
schema:
|
||||
hammerhead_url: url
|
||||
token: password
|
||||
discover: bool
|
||||
discover_subnets: str?
|
||||
discover_ports: str?
|
||||
discover_rate: float(1,)?
|
||||
@@ -26,6 +26,10 @@ ports="$(bashio::config 'discover_ports')"
|
||||
if [ -n "${ports}" ]; then
|
||||
export BAMBOO_DISCOVER_PORTS="${ports}"
|
||||
fi
|
||||
rate="$(bashio::config 'discover_rate')"
|
||||
if [ -n "${rate}" ]; then
|
||||
export BAMBOO_DISCOVER_RATE="${rate}"
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting $(bamboo -version), connecting to ${BAMBOO_HAMMERHEAD}"
|
||||
# /data survives restarts and updates; it holds this site's WireGuard key.
|
||||
|
||||
@@ -14,3 +14,6 @@ configuration:
|
||||
discover_ports:
|
||||
name: Scan ports
|
||||
description: "The TCP ports to try when scanning, for example 22,80,443,8000-8010. Leave empty for a short list of common ones."
|
||||
discover_rate:
|
||||
name: Scan speed
|
||||
description: The most connection attempts per second a scan may make. The default is 50.
|
||||
Reference in new issue
Block a user