Netgate SG-1000 microFirewall

Author Topic: Haproxy Hangs on HTTPS File Transfers  (Read 62 times)

0 Members and 1 Guest are viewing this topic.

Offline mrant

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Haproxy Hangs on HTTPS File Transfers
« on: April 17, 2018, 03:12:59 am »
So I have pfsense set up with haproxy running as an HTTPS-enabled reverse proxy for other services inside my network.
I moved my pfsense box off my edge a while back, so I have port 443 forwarded from my router to the pfsense box. This setup works great for hitting a variety of HTTP endpoints on various hosts inside my network.

One such endpoint is my Synology NAS. Accessing the web interface for the NAS over the reverse proxy works great, however, whenever I try to download a file via the web interface over HTTPS relayed via the pfsense + haproxy reverse proxy, the file transfer makes it a little over 1MB before it hangs and time out, and the haproxy instance becomes completely unresponsive to any connections originating from the forwarded port via the router.
I can still access the haproxy instance from other machines locally, but any external attempts simply timeout.
Restarting the haproxy service is not sufficient to restore functionality either. I have to reboot the entire pfsense box to restore functionality again, which leads me to believe it is not necessarily haproxy that is having the issue, but something in pfsense itself.

To rule out an issue with the Synology box or the web interface, I tunneled the web interface port directly, bypassing my reverse proxy, and file transfers work perfectly fine, also over HTTPS.

Any ideas how to troubleshoot this?
Let me know what details would help.

Thanks,
MrAnt

Offline maverick_slo

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +40/-3
    • View Profile
Re: Haproxy Hangs on HTTPS File Transfers
« Reply #1 on: April 17, 2018, 04:52:53 am »
Hi!
Have you tried without proxy?

Take a look at this post, can you add the same as me and try again?
https://forum.pfsense.org/index.php?topic=140713.msg796932#msg796932

Piba recommended this and it resolved all of my issues...

Offline mrant

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Haproxy Hangs on HTTPS File Transfers
« Reply #2 on: April 17, 2018, 05:14:21 am »
Yes, when I bypass the proxy and connect directly, it works just fine.

To clarify, setting the option 'nokqueue' in haproxy config resolved the issue for you?
Did you add this to the 'Custom options' section?

I'll give this a try and report back

Thanks!

Offline maverick_slo

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +40/-3
    • View Profile
Re: Haproxy Hangs on HTTPS File Transfers
« Reply #3 on: April 17, 2018, 06:57:08 am »
Its global passtrough settings...