SSL Certificate
I have an Ubuntu VPS server running a web server with Nginx. Initially, I configured Cloudflare as a reverse proxy pointing to my server’s IPv4 address. I noticed that my server’s IPv4 address was being exposed on services like Shodan.io, one of my friends checked it and told me the reason was from the ssl, because when he searched with the ssl he also found the ip, even though I had configured SSL to "Full" mode in Cloudflare and hosted the SSL certificate on my server.
As I’m still new to server management, I switched the SSL setting in Cloudflare to "Flexible" and removed the SSL configuration from the Nginx setup. Could this change have been the reason my IPv4 address was exposed? Additionally, I would like to know the best practice for SSL configuration. Should I use "Full Strict" mode and host the SSL certificate on my VPS?
17 Replies
Ping me when someone reply
your servers ip address can be exposed through your domain if your A/AAAA records are unproxied (dns only)
If you have proxying enabled for all records that contain your ip then it is not possible to directly figure out your servers ip (...)
whether or not tls is used doesn't have anything to do with that as far as I know
But I've already proxied them and the ipv4 was still showing on shodan.io
is not possible to directly figure out your servers ipthere are workarounds
wdym by workarounds
if you had your records unproxied previously or if your server answers to traffic that doesn't originate from cloudflare
there are many ways that your ip can end up in a database, associated with your domain
so if it was previosly unproxied would that be the issue?
the data base is also hosted in the vps and i can not even access it witout connecting to the vps
what's your domain
lutex.io
DNS over Discord: A records
lutex.io A @1.1.1.3 +noall +answer
diggy diggy hole
DNS over Discord: AAAA records
lutex.io AAAA @1.1.1.1 +noall +answer
diggy diggy hole
¯\_(ツ)_/¯
what?
at first glance your dns seems fine
once again there are a lot of slip ups that could lead to your ip being exposed
there really isn't much you can do after that
I'm changing the ipv4 but i need to make sure that the mistake i did before is not going to happen again
Are you sure that it has nothing to do with ssl?
I'm not an expert on that topic, so maybe wait for someone else to respond
sure
>﹏<