Enable HSTS on 3CX server

javond01

Customer
Joined
Jun 28, 2023
Messages
7
Reaction score
0
We recently did an internal pen-test and the results came back that our 3CX server running Debian does not have HSTS enforced as defined by RFC 6797. How do we enable it?

Thanks.
 
Do note that some older devices might need plain HTTP for provisioning, so check your environment more generally before blocking that function.
 
Do note that some older devices might need plain HTTP for provisioning, so check your environment more generally before blocking that function.
Thank you for mentioning that. It looks like all our phones except the W60B use https for provisioning. However, we don't even allow the http port through the firewall that the W60B uses for provisioning, so I will have to look into that to see if I can change it to use https or else open up the http port or those devices might not provision.
 
Thank you for your quick response. Where is the nginx config located, and do you just add the text add_header Strict-Transport-Security "max-age=63072000" always into the file?
I don't think 3CX would appreciate me providing step by step instructions on their forum for something they don't want done. But I'm sure if you google "nginx locate config file" and nginx add header" you will find many guides on how to do it.

3CX installs into /var/lib/3cxpbx on linux. All 3CX pieces, including nginx configs, are located there.
 
I don't think 3CX would appreciate me providing step by step instructions on their forum for something they don't want done. But I'm sure if you google "nginx locate config file" and nginx add header" you will find many guides on how to do it.

3CX installs into /var/lib/3cxpbx on linux. All 3CX pieces, including nginx configs, are located there.
Perfectly understandable. Thank you.
 

Forum statistics

Threads
111,954
Messages
589,919
Members
164,851
Latest member
DrunkeMeister