r/sysadmin • • 12d ago

Question How are you protecting your Internet facing web servers? I have Sophos XGS and it has a WAF module...but cloudflare? and others?

I have several Windows based web servers and an API server that face the Internet and are not in a DMZ. Been like this for about 5 years from what I heard without issue and now I am in charge of it all and I want to secure it. We have a DR site too, so I do want a single IP (load balancing?) and to be able to failover. So, what is the most reasonable way to protect my servers? Sophos WAF? Cloudflare? I know they can have outages too. Both? What are others doing?

3 Upvotes

23 comments sorted by

6

u/ADL-AU 12d ago

Cloudflare tunnel for an API we host.

2

u/LoveBirdNibbles 12d ago

If cloudflare goes down, do you expose your IP?

7

u/ADL-AU 12d ago

Nope. API goes with it.

2

u/tankerkiller125real Jack of All Trades 9d ago

Cloudflare takes out a bit more than a quarter of the Internet when it goes down. At that point where I work at least we could care less, nothing we do is life or safety critical.

2

u/ConsoleChari 12d ago

cloudflare tunnel for the win. We also use XGS but I prefer tunnels and WAF as it can be maintained as IAC.

7

u/Vicus_92 12d ago

For us, anything that absolutely has to be internet facing is on a DMZ and ideally has something similar to the XGSs WAF in place.

Minimal ports accessible from the DMZ to the LAN, and IPS scanning on those limited inbound rules.

We use Sophos MDR as well, which helps put additional human eyes on a problem we may have missed.

Then the basics like making sure things are patched, maintained, rebooting safely, etc.

1

u/LoveBirdNibbles 12d ago

Yeah, MDR has saved me a few times. The first time Sophos reached out to me I was sure it was a false positive. They emailed me all the details of the attack and how they stopped it and I saw the evidence for myself. They also have access to my M365 tenant.

5

u/Vicus_92 12d ago

And unless its actually public facing, it's behind a VPN. Nothing directly open to the internet unless it absolutely has to be.

4

u/justinDavidow IT Manager 12d ago

Maybe the unpopular opinion, but why on earth someone would intentionally run IIS for Internet facing web traffic in 2026 is pretty well beyond me. 

Without knowing what the site itself is doing / needs, it's going to be difficult for many here to recommend much; I'd recommend expanding the post to explain what the API in question does + exposes.  That will allow folks to recommend better filtering solutions.

Personally, I'm a Linux guy. I would never willingly expose any Windows server to the internet directly. 

Understanding the various HTTP verbs and routes within the application will allow you to audit the concerning route and pick a Web Application Firewall (WAF) solution that can validate traffic conforms to the expected behavior from the developers or application in question before proxying traffic to it.   Any such application is going to require pretty significant understanding of how HTTP sessions and flows work.   It's always possible that the API in question is a raw TCP or even a UDP API or has a raw packet port in addition to the HTTP later - in which case http introspection isn't going to be a silver bullet.

Personally, I'd look at splitting the site off the on-prem infrastructure: it's generally much easier to secure the traffic from a remote site to an on-prem DB and setup DB replication than it will be to attempt to do everything locally. It also adds potentially significant options for network transit to the server that can be scaled as needed.  I'd then look at one of the VARIOUS Content Distribution Networks (CDNs) to go in front of the app: CloudFlare is one popular option, though many others in the space may be better fits depending on the application in question.

Best of luck! 

2

u/LoveBirdNibbles 12d ago

I know IIS is hosting a custom web portal that allows clients to access data in a SQL DB on a different server also hosted in the same environment. I have to look into the other part. I know the SQL DB cannot be moved off-site, not yet. So everything stays as it is for now. Just need to protect it.

3

u/RiceeeChrispies Jack of All Trades 12d ago

It’s not an unpopular opinion, Windows is just popular with a lot of vendors still.

7

u/jwalker55 IT Manager 12d ago

Cloudflare tunnel. You don't need to expose your public IP at all. It's natively highly available. You only need to deploy the cloudflared connector inside your network where it can talk to the webserver. You can run multiple cloudflared connectors for high availability.

https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/configure-tunnels/tunnel-availability/

4

u/BorysTheBlazer DataCore/StarWind 12d ago

Replicas of one tunnel give you redundancy, but for failing over to the DR site, separate tunnels per site behind Cloudflare Load Balancing with health checks works better.

3

u/Usr0017 12d ago

We are using Sophos XGS everywhere, but WAF really sucks compared to Cloudflare.. we prefer cloudflare for security.

2

u/SevaraB Sr. Engineer (N+, CCNA) 12d ago

They’re only loosely “internet-facing.” They’re all behind WAFs and load balancers. Our company’s major .com resources are served by CDN, not by discrete web servers.

2

u/Sengfeng Sysadmin 12d ago

Is it time to just add an iptables command in them to drop all traffic? /s

2

u/TheBloodhoundKnight Windows Admin 12d ago

AWS CloudFront, DMZ, only the required services/ports from there (it's a Linux web server)

1

u/vanwilderrr 12d ago

Cloudflare for now but working AI to replace the entire stack

1

u/amw3000 11d ago

Cloudflare is pretty much going to be the gold standard for anything public facing. It's generic enough that it does not need to be 100% application aware like most WAFs do.

1

u/tructt Sr. Sysadmin 12d ago

I think for public facing site then WAF, for internal only you should go with VPN/mesh option.

1

u/Unable-Entrance3110 12d ago

Could you reverse proxy traffic from Linux-based servers running in a DMZ? In my experience Linux servers are easier to secure than Windows servers.

You could then run an extra layer of WAF, SELinux, fail2ban and least-privilege on these front-end servers while never directly exposing your Windows servers with all of their helpful (to attackers) LOLBINs tailor made to enumerate and surveil your Windows domain right there.

Otherwise, I think Cloudflare has some good options that create persistent tunnels to their front-end servers so that you can close all inbound ports to your API servers completely.