This section provides an example for configuring SIP over TLS ALG.
As shown in Figure 1, a SIP server is deployed on the enterprise intranet. When going online, each SIP client needs to send a register message to the SIP servers. The register messages are carried through SIP.
To enhance security, TLS is required on the SIP clients and SIP server to encrypt SIP messages. The FW is deployed between the SIP clients and SIP server to encrypt SIP messages and implement NAT ALG.
Choose , click Add Security Policy.

Ensure that the server certificate imported by the FW is the same as the server certificate loaded by the SIP server. Contact the SIP server administrator to obtain the server certificate and its private key.





The following lists the related script of this configuration example.
# sysname FW # app-proxy server certificate filename sip_server.pem # interface GigabitEthernet0/0/1 ip address 10.2.0.1 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 1.1.1.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/2 # firewall interzone trust untrust detect sip # security-policy rule name policy_sec1 source-zone untrust destination-zone trust source-address 1.1.1.0 mask 255.255.255.0 destination-address 10.2.0.2 mask 255.255.255.0 service sip action permit # profile type decryption name profile detect type inbound unsupport ssl-version block unsupport ssl-cipher block # decryption-policy rule name decrption_policy1 source-zone untrust destination-zone trust destination-address 10.1.1.0 mask 255.255.255.0 service sip action decrypt profile profile # nat-policy rule name policy_nat1 source-zone untrust destination-address 1.1.1.10 mask 255.255.255.0 service sip action destination-nat static address-to-address address 10.2.0.2 5061 # return