add port 61501 to Contec ports list and firewall rules
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"hl7_host": "0.0.0.0",
|
||||
"hl7_port": 6060,
|
||||
"contec_ports": [511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 8001, 8002, 8300, 9000, 9100, 9200, 10008, 12345],
|
||||
"contec_ports": [511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 8001, 8002, 8300, 9000, 9100, 9200, 10008, 12345, 61501],
|
||||
"monitor_ip": "",
|
||||
"monitor_model": "CMS8500",
|
||||
"device_models": {
|
||||
|
||||
@@ -5,7 +5,7 @@ from pydantic_settings import BaseSettings
|
||||
class Settings(BaseSettings):
|
||||
hl7_host: str = "0.0.0.0"
|
||||
hl7_port: int = 6060
|
||||
contec_ports: list = [511, 515, 516, 517, 518, 519, 520]
|
||||
contec_ports: list = [511, 515, 516, 517, 518, 519, 520, 61501]
|
||||
monitor_ip: str = ""
|
||||
monitor_model: str = "CMS7000PLUS"
|
||||
device_models: dict = {}
|
||||
|
||||
+4
-3
@@ -32,10 +32,11 @@ if [ -f "${WORKING_DIR}/requirements.txt" ]; then
|
||||
"${WORKING_DIR}/venv/bin/pip" install -r "${WORKING_DIR}/requirements.txt"
|
||||
fi
|
||||
|
||||
# Open firewall ports for Contec monitor (Port 511) and Web API (Port 8006)
|
||||
# Open firewall ports for Contec monitor (Port 511, 61501) and Web API (Port 8006)
|
||||
if command -v ufw >/dev/null 2>&1; then
|
||||
echo "=== Configuring firewall (UFW) for Port 511 and 8006 ==="
|
||||
sudo ufw allow 511/tcp comment "Contec Patient Monitor CMS TCP" || true
|
||||
echo "=== Configuring firewall (UFW) for Port 511, 61501, and 8006 ==="
|
||||
sudo ufw allow 511/tcp comment "Contec Patient Monitor CMS TCP 511" || true
|
||||
sudo ufw allow 61501/tcp comment "Contec Patient Monitor CMS TCP 61501" || true
|
||||
sudo ufw allow 8006/tcp comment "Contec Forwarder HTTP API" || true
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user