Haproxy works outside the network but not on LAN/LAGG
-
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?
-
@VioletDragon
Do you have transparent-client-ip enabled on the backend config? -
@VioletDragon said in Haproxy works outside the network but not on LAN/LAGG:
still the same issue
What issue exactly.? Error / timeout / slow / etc..?
-
@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.
-
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..
-
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$
-
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.