Ports can be disabled to prevent them from accepting network traffic
To disable a port:
Go to System Settings > Network and click All Interfaces. The interface list opens.
Double-click on a port, right-click on a port then select Edit from the pop-up menu, or select a port then click Edit in the toolbar. The Edit System Interface pane is displayed. In the Status field, click Disable