> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/security-hardening-for-os-and-web-portal.md).

# Security Hardening for OS and Web Portal

## Applicable Products

* TMG800, TMG3200, TMG7800-CTRL
* TSG800, TSG3200
* ProSBC, TSBC-SW

## Introduction

This page discusses methods for improving overall security of Telcobridges system against unwanted attacks and vulnerabilities with adverse exposure as introduced from internet or connecting to network in general.

## Tmedia/Tsig/Tdev

### Management Port Protection

* Keep the management port in a protected environment (behind a firewall). See [Firewall](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/firewall/README.md). Note that Mysql port 3306 is for internal use only, this should not be allowed for external access.
* Iptables could be used to set up rules for management interface to allow only necessary protocols and ports required for access and operation of Telcobridges system. Please check here: [Firewall rules on management port](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/syslog-redirect/README.md#firewall-rules-to-the-management-port)
* Other ports do not have access to the OS (unless configured on the web portal). Normally, other ports on the system are configured with services other than management such as OAMP/NAT or FIXED MANAGEMENT.
  * For example, Voip0 is configured with SIP and RTP, and this port will care for these specific protocols only and discard the rest of the traffic.
  * For configuring port IP interface setting and services, see example of [VOIP port IP interface configuration](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/configuring-voip-interfaces/README.md) and [Services to use](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/services-to-use/README.md).
* In normal operation, only default Mgmt port, or a dedicated Ethernet port on external host server, should be used for management access. SIP/RTP/SIGTRAN or RADIUS/H248 together or separate, could be used on voip0/voip1/eth0/eth1.

### SSH Access Security

* Use a strong password for the SSH access. Default password is a strong password that includes alphanumerical and symbol characters. This password can be chaged: see [How to change host password on Linux](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/how-to-change-host-password-on-linux/README.md)

### Operating System Update for New Packages

* To keep operating system to the latest version, use command line "yum update" or through web portal by doing upgrade linux packages, see [Upgrade Telcobridges Linux](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/operations/upgrade-telcobridges-linux-software-packages/README.md).
* Telcobridges has adopted a proactive OS update practice to keep up to date Telcobridges Linux repository.

### Web Portal Access Security

* One or more user groups can be created to define access rights, such as read only, read/write, or no access at all. Access rights can be assigned to all regions of the web portal or to specific areas. One or more users can be created and given access, which was previously defined by user groups. A user is given a name, a password, and assigned to a user group.
* HTTPS is available from 2.9.41 and onwards. HTTPS provides a secure connection between browser and web server. The connection is encrypted using TLS/SSL.
* Web Portal access security enhancement is available on Toolpack 2.10.19 and onwards
  * After a web portal failed login access, it will wait about 2 seconds, to prevent brute force attack on web portal login
  * There will be new password complexity requirements such as,
    * At least 8 characters total
    * At least 1 upper case character
    * At least 1 lower case character
    * At least 1 number
    * At least 1 special character
  * User account disabling (there will be a check box to indicate active users account), uncheck it will disable the account
  * Password confirmation when creating/editing users
  * Web session auto-logout after a certain amount of time without activity (default 30 mins)
* See [Access and User Management](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/tmedia-tdev-and-tsig-web-portal-2-10-system-settings/README.md#access-and-user-management) for configuration

## SBC

* ProSBC product follow the same security hardening practices for *SSH Access Security*, *Operating system update for new packages*, and *Web Portal Access Security* (see [Tsbc System Settings 3.0](https://github.com/telcobridges-main/tmedia-wiki/tree/main/tmedia/configuration/freesbc-web-portal-3-0-system-settings/README.md)) of Tmedia/Tsig/Tdev above.
* Web portal (host interfaces), ssh (when enabled and managed by web), SNMP service (host interfaces) are firewall protected within SBC.
* Web portal/SSH/SNMP access ports refer to LAN/WAN ports that have device defined for management such as OAMP/NAT or FIXED MANAGEMENT.
* Physical management port (mgmt) should be used for serial connection or put in a private LAN environment at all times for maintenance purpose only if needed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/security-hardening-for-os-and-web-portal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
