How to open up TCP ports in Linux/Windows OS-level Firewall?
if this host is designated as a receiver for establishing an H2H connection, the following system commands can be used to open up port 4996 for Inbound connection.
Run the following commands in PowerShell to add new rules to Windows Firewall.
Note: These commands only open up OS-level firewalls. There may be other security components restricting the host's ability to communicate with other hosts for H2H connections. These components may include network-level firewalls, hypervisor-level firewalls, cloud security settings, etc. Contact your network administrator for detailed information.
#app-hint:create-h2h-link-form
RHEL-based Linux 7+ (Redhat, CentOS, Amazon Linux, Rocky Linux, Fedora)
# firewall-cmd --add-port=4996/tcp --permanent
# firewall-cmd --reload
Debian-based Linux (Debian, Ubuntu)
ufw allow 4996/tcp
Microsoft Windows
Run the following commands in PowerShell to add new rules to Windows Firewall.
New-NetFirewallRule -DisplayName "ALLOW TCP PORT 4996 Inbound for CMC H2H" -Direction inbound -Profile Any -Action Allow -LocalPort 4996 -Protocol TCP
Note: These commands only open up OS-level firewalls. There may be other security components restricting the host's ability to communicate with other hosts for H2H connections. These components may include network-level firewalls, hypervisor-level firewalls, cloud security settings, etc. Contact your network administrator for detailed information.
#app-hint:create-h2h-link-form
Updated on: 11/07/2022
Thank you!