ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Reverse Proxy for VPS VMs

    IT Discussion
    vps reverse proxy best practice security
    3
    4
    779
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EddieJenningsE
      EddieJennings
      last edited by

      I might need to reword the title as the discussion rolls on.

      For those of you who run Wordpress or NextCloud or similar web services on things like Vultr, do you take the time to try to configure a reverse proxy on the same VM?

      It seems like you get a bit of protection with say your Wordpress application listening on localhost:80 rather than port 80 (443) on the VM's Internet facing NIC, but I wonder if there's any actual benefit.

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by

        You can increase protection by setting up a Web Application Firewall.

        https://modsecurity.org/
        https://www.modsecurity.org/crs/
        https://owasp.org/www-community/Web_Application_Firewall

        Here's an example of setting up a web application firewall with Nginx and Nextcloud.
        https://riegers.in/nextcloud-with-modsecurity-3-web-application-firewall/

        1 Reply Last reply Reply Quote 1
        • thwrT
          thwr
          last edited by

          I'm running all my linux-based workloads in containers. Gives you a lot of benefits at the cost of a very small management overhead. My default config is to have workloads like NextCloud behind a Traefik or nginx reverse proxy. I can also easily chain in a snort container (or some other WAF), for example. But my main use case for a reverse proxy is certificate handling.

          As for the security aspect of a reverse proxy, well, no one will be able to directly reach your Wordpress installation., everything is terminated at the upstream proxy. But if the upstream proxy is just passing everything through, then there's no extra security. A WAF. on the other hand, can be of great help: It may inspect requests for exploits, scan data posted to your site, use externally maintained blacklists to block spammers and so on. While they are usually a PITA to configure, there are templates available for most WAFs and many popular applications, including Wordpress.

          1 Reply Last reply Reply Quote 2
          • EddieJenningsE
            EddieJennings
            last edited by

            I like the idea of the web application firewall, and that looks like something that can setup on the same VM as what would be running Nextcloud, etc.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post