add port 61501 to Contec ports list and firewall rules

This commit is contained in:
2026-09-21 14:26:15 +05:30
parent 68edb0b224
commit a7999add61
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"hl7_host": "0.0.0.0", "hl7_host": "0.0.0.0",
"hl7_port": 6060, "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_ip": "",
"monitor_model": "CMS8500", "monitor_model": "CMS8500",
"device_models": { "device_models": {
+1 -1
View File
@@ -5,7 +5,7 @@ from pydantic_settings import BaseSettings
class Settings(BaseSettings): class Settings(BaseSettings):
hl7_host: str = "0.0.0.0" hl7_host: str = "0.0.0.0"
hl7_port: int = 6060 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_ip: str = ""
monitor_model: str = "CMS7000PLUS" monitor_model: str = "CMS7000PLUS"
device_models: dict = {} device_models: dict = {}
+4 -3
View File
@@ -32,10 +32,11 @@ if [ -f "${WORKING_DIR}/requirements.txt" ]; then
"${WORKING_DIR}/venv/bin/pip" install -r "${WORKING_DIR}/requirements.txt" "${WORKING_DIR}/venv/bin/pip" install -r "${WORKING_DIR}/requirements.txt"
fi 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 if command -v ufw >/dev/null 2>&1; then
echo "=== Configuring firewall (UFW) for Port 511 and 8006 ===" echo "=== Configuring firewall (UFW) for Port 511, 61501, and 8006 ==="
sudo ufw allow 511/tcp comment "Contec Patient Monitor CMS TCP" || true 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 sudo ufw allow 8006/tcp comment "Contec Forwarder HTTP API" || true
fi fi