Securing direct access to HTTPS page when accessing WAN IP #2624
Unanswered
davecowley
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Can you share what specifics are you solving? Hope this helps! |
Beta Was this translation helpful? Give feedback.
4 replies
-
Any SSL will not work as it will not resolve to a domain as the error is with direct IP. I just need to be able to filter away anything trying to access NPM which doesn't have an active domain registered on NPM. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I was hoping someone could help me with securing NPM please? I have recently had a pentest and it flagged a page which loads when accessing the external IP + 443 port externally.
When accessed it loads a "Your connection is not pricate" page and uses a self assigned certificate which is valid for 10 years.
I think I am on the right track but need some guidance please.
I have created /data/nginx/custom/http_top.conf and added in the below:
charset utf-8;server {listen 443;server_name _;return 444;}
My understanding is that it would block anything which doesnt have a hostname assigned. The above caused any https page to not load. I now think that I need to set the actual hostnames/domain names and then activate the above code.
Firstly does anyone know which file and the location of the config file which needs to be modified? I have tried adding the below in to http_top.conf but it doesnt seem to like it.
server {listen 443;server_name *.companysite.com;}
server {listen 443;server_name *file.companysite.com;}
my http_top.conf then looked like
I am pretty much stuck but I think I am getting close to the answer.
Can anyone help please?
Beta Was this translation helpful? Give feedback.
All reactions