Proxy not working fine when a request is sent from an external ip.

18 views
Skip to first unread message

Chengue Fer

unread,
Sep 24, 2024, 4:41:17 AM9/24/24
to membrane-monitor
Hi community,

Hoping all of you are doing fine.

Having this basic proxy:

<router>

<serviceProxy port="8083">
<target host="domain.local" port="443">
<ssl>
<truststore location="C:\cacerts\trustprod" password="changeit" />
</ssl>

</target>
</serviceProxy>

<serviceProxy port="9023">
<basicAuthentication>
<user name="admin" password="membrane" />
</basicAuthentication>
<adminConsole />
</serviceProxy>

</router>

It works fine when a request is sending in the same machine where membrane is running and in the browser the URL is localhost:8083/portal/default.aspx?user_name=hce48987&password=LAuCR3hl7w&patient_id=32745002 

But if the URL is  for example 10.30.5.16:8083/portal/default.aspx?user_name=hce48987&password=LAuCR3hl7w&patient_id=32745002  (being 10.30.5.16 de IP where membrane is running), even when the browser is executed locally or in a computer in the intranet.

The response is:

HTTP/1.1 401 Unauthorized
Cache-Control: private,no-cache, no-store
Content-Type: application/json; charset=utf-8
jsonerror: true
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; style-src * 'unsafe-inline' blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' data:; connect-src 'self' data: blob: https://*/chat/ChatService/ wss://*/chat/ChatService/; font-src 'self' data:; img-src * data:; media-src 'self' 'unsafe-inline'; object-src 'self' 'unsafe-inline'; manifest-src 'self';worker-src 'self'; prefetch-src 'self'; child-src 'self' blob:; frame-src 'self' mailto: blob: https://*/pathologysuite/ https://*/chat/default.aspx;
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Fri, 20 Sep 2024 14:39:38 GMT
Content-Length: 91

{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}

Can you help us please? Is there any modification we should do to fix it?

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages