From a7999add61cd8f3682504b90ba8e40a309d21408 Mon Sep 17 00:00:00 2001 From: Arun Date: Mon, 21 Sep 2026 14:26:15 +0530 Subject: [PATCH] add port 61501 to Contec ports list and firewall rules --- config.json | 2 +- config.py | 2 +- setup_service.sh | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config.json b/config.json index 0d0712d..6ec75ef 100644 --- a/config.json +++ b/config.json @@ -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": { diff --git a/config.py b/config.py index b036d6a..8aadcc9 100644 --- a/config.py +++ b/config.py @@ -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 = {} diff --git a/setup_service.sh b/setup_service.sh index 7e10622..edbc536 100644 --- a/setup_service.sh +++ b/setup_service.sh @@ -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