Skip to main content

Network and Firewall

Securing the network perimeter and host-based firewall settings is critical for protecting BioStar X against unauthorized access and lateral movement in the network. Since BioStar X can expose services over HTTPS, REST, gRPC, WebSockets, and Thrift, it's important to strictly control inbound and outbound connections.

Enable and configure Windows Defender Firewall

A properly configured firewall ensures that only explicitly authorized traffic reaches BioStar X, significantly reducing attack surface.

Default BioStar X network ports

ServicePurposeDefault Port(s)
BioStar X Core Web ServiceHTTPS / Web Interface5002
Thrift RPC9310
BioStar X Core ServiceWebSocket9002
FastCGI9000
API9010
RPC51218
Unified Gateway ServiceHTTPS443
Coordinator ServiceClient Communication21810
Main ServerTCP Server51212
SSL Server51213
gRPC51219
Cache ServiceClient10800
Communication47500
Discovery47100
Info

When Communication Server is deployed, it uses the same Main Server communication ports (51212, 51219). Administrators should ensure these ports are reachable between the Communication Server and the Main Server according to the deployment topology.

Step-by-step

  1. Open Windows Defender Firewall with Advanced Security (wf.msc).

  2. Go to Inbound Rules and remove or disable rules that are not required.

  3. Create explicit allow rules for:

    • Unified Gateway HTTPS (443): external/public if required.

    • Core Web Service HTTPS (5002): but ideally proxied through 443.

    • Internal-only ports (gRPC 51219, Cache 10800/47500/47100, Coordinator 21810, Thrift 9310): allow only from localhost or trusted subnets.

  4. Set all other inbound traffic to Block.

  5. Go to Outbound Rules and restrict to known trusted endpoints.

Caution

Avoid broad "Allow All" rules. Changing default ports provides minor obscurity benefits but does not replace firewall enforcement.

Limit remote access

  • Restrict Remote Desktop (RDP) to authorized administrators only.

  • If RDP is required: use NLA, place server behind a VPN or jump host.

  • If not needed: disable it (System PropertiesRemote settings).

Secure network segmentation

  • Place BioStar X servers in a dedicated VLAN or DMZ separated from user networks.

  • Only allow communication between BioStar X and required systems (e.g., database server, API consumers, readers).

  • Restrict management access (RDP, SSH) to admin subnets only.

Best Practice

Combine segmentation with host firewalls for defense in depth.

Harden network protocols

Disable SMBv1

PowerShell command to disable SMBv1:

PowerShell
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

Enforce TLS 1.2+

  • Registry path: HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols

    Disable SSL 2.0, SSL 3.0, TLS 1.0, and TLS 1.1.

  • Verify with IIS Crypto or nmap --script ssl-enum-ciphers.

Caution

Test in staging before disabling protocols to avoid compatibility issues.

Network intrusion detection & monitoring

  • Deploy IDS/IPS (Snort, Suricata, or commercial).

  • Enable Windows Defender Firewall logging for dropped packets and allowed connections.

  • Forward logs to SIEM for centralized monitoring.

Info

Firewall log path: %systemroot%\system32\LogFiles\Firewall\pfirewall.log

Was this page helpful?