Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Haproxy works outside the network but not on LAN/LAGG

    Scheduled Pinned Locked Moved Cache/Proxy
    7 Posts 3 Posters 1.1k Views
    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.
    • VioletDragonV
      VioletDragon
      last edited by

      Hi folks,

      Ive got a problem with HaProxy. I can access the server outside the network but not inside the network i have Pure NAT enabled but still the same issue. any ideas?

      4.png 3.png 2.png 1.png

      P 2 Replies Last reply Reply Quote 0
      • P
        PiBa @VioletDragon
        last edited by

        @VioletDragon
        Do you have transparent-client-ip enabled on the backend config?

        VioletDragonV 1 Reply Last reply Reply Quote 0
        • P
          PiBa @VioletDragon
          last edited by

          @VioletDragon said in Haproxy works outside the network but not on LAN/LAGG:

          still the same issue

          What issue exactly.? Error / timeout / slow / etc..?

          1 Reply Last reply Reply Quote 0
          • VioletDragonV
            VioletDragon @PiBa
            last edited by

            @PiBa Hi, No it is disabled i moved to Virtual IP but the issue is now is i cant connect to the server whether HAproxy is disabled or not.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Ok bit confused to what your trying to accomplish here..

              What does pure-nat have to do with haproxy? That is a nat reflection thing.

              On your backend server setup, why are you listing a acme cert for something your pointing 80 and have ssl off on, your doing ssl offloading it from your frontend setup.

              Your address on your backend should be something that pfsense resolves to its rfc1918 address..

              I run a haproxy with ssl offloading using a acme cert for the box behind.. And works just fine from outside or even inside when I use the fqdn that resolves to the public IP..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • VioletDragonV
                VioletDragon
                last edited by

                i got further and got nextcloud installed but the issue im having is that when uploading files to the Nextcloud Server it fails when behind the Proxy. Output of the server is,

                2020/08/22 20:17:05 [error] 1458#1458: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 345165344 bytes) in /usr/share$

                1 Reply Last reply Reply Quote 0
                • VioletDragonV
                  VioletDragon
                  last edited by

                  Update,

                  Fixed the problem had to do some tweaking on the NextCloud Server also on the other Servers.

                  Tweak on Nextcloud Server
                  'overwriteprotocol' => 'https',

                  also had to change upload File Size.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.