OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: loredo on May 09, 2018, 10:00:53 am

Title: Proxying OPNsense GUI with HAproxy
Post by: loredo on May 09, 2018, 10:00:53 am
Hi,

for more flexibility I want HAproxy to listen on port 443 and proxy OPNsense GUI.
The HAproxy configuration is not a problem as such. However, the OPNsense GUI does not seem to support being behind a proxy as the interface becomes fairly sluggish. This is what I get on the browser console, only when accessing the GUI via HAproxy:

Code: [Select]
JQMIGRATE: Migrate is installed, version 3.0.1
jquery-3.2.1.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery-3.2.1.min.js:4
ajax @ jquery-3.2.1.min.js:4
e.ajax @ jquery-migrate-3.0.1.min.js:80
r._evalUrl @ jquery-3.2.1.min.js:4
Ja @ jquery-3.2.1.min.js:3
append @ jquery-3.2.1.min.js:3
r.fn.(anonymous function) @ jquery-3.2.1.min.js:3
(anonymous) @ (index):1149
each @ jquery-3.2.1.min.js:2
each @ jquery-3.2.1.min.js:2
(anonymous) @ (index):1143
j @ jquery-3.2.1.min.js:2
k @ jquery-3.2.1.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.2.1.min.js:2
i @ jquery-3.2.1.min.js:2
fireWith @ jquery-3.2.1.min.js:2
fire @ jquery-3.2.1.min.js:2
i @ jquery-3.2.1.min.js:2
fireWith @ jquery-3.2.1.min.js:2
ready @ jquery-3.2.1.min.js:2
S @ jquery-3.2.1.min.js:3
(index):1131 TypeError: Cannot read property 'datum' of null
    at system_information_widget_cpu_update (<anonymous>:27:48)
    at system_information_widget_update (<anonymous>:36:7)
    at (index):1128
    at Array.map (<anonymous>)
    at Object.<anonymous> ((index):1125)
    at i (jquery-3.2.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2)
    at A (jquery-3.2.1.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4)
(index):1131 TypeError: Cannot read property 'datum' of null
    at system_information_widget_cpu_update (<anonymous>:27:48)
    at system_information_widget_update (<anonymous>:36:7)
    at (index):1128
    at Array.map (<anonymous>)
    at Object.<anonymous> ((index):1125)
    at i (jquery-3.2.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2)
    at A (jquery-3.2.1.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4)
(index):1131 TypeError: Cannot read property 'datum' of null
    at system_information_widget_cpu_update (<anonymous>:27:48)
    at system_information_widget_update (<anonymous>:36:7)
    at (index):1128
    at Array.map (<anonymous>)
    at Object.<anonymous> ((index):1125)
    at i (jquery-3.2.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2)
    at A (jquery-3.2.1.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4)
(index):1131 TypeError: Cannot read property 'datum' of null
    at system_information_widget_cpu_update (<anonymous>:27:48)
    at system_information_widget_update (<anonymous>:36:7)
    at (index):1128
    at Array.map (<anonymous>)
    at Object.<anonymous> ((index):1125)
    at i (jquery-3.2.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js:2)
    at A (jquery-3.2.1.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js:4)

Any idea if I need to pimp something in HAproxy or if this is a problem in the OPNsense GUI?