Skip to main content
Potato
New Member
Aug 28, 2024 7:25 AM UTC
Solved

Does SOCKS proxy support Form based authentication?

Dear all,

 

I just read this KB

 

https://docs.fortinet.com/document/fortigate/7.6.0/new-features/634909/socks-proxy-supports-utm-scanning-authentication-and-forward-server

 

, and it looks good to my operation.

So I tried to set up one Evaluation Fortigate and see if Form-based Auth is also supported.

 

But seems no luck here.

 

The Form-based auth only appeared when I selected HTTP protocol.

 

If I selected Socks. No luck then.

 

No Form.PNG

 

Is there any way to achieve Captive portal + Local User DB + Socks-based proxy Auth on Fortigate?

 

 

jintrah_FTNT
Staff
Sep 4, 2024 12:03 PM UTC

Dear Potato,

 

The idea of achieving form based authentication using socks sounds better but I guess its not possible. We must understand how the underlying protocol works.

 

Socks is functioning at layer4 while form based authentication at layer7. Again, when implementing socks authentication defined in rfc 1928 (https://datatracker.ietf.org/doc/html/rfc1928) , the acceptable methods defined in protocol are below,

 

-----------------------------------------------------------------------------------

 The values currently defined for METHOD are:            o  X'00' NO AUTHENTICATION REQUIRED           o  X'01' GSSAPI           o  X'02' USERNAME/PASSWORD           o  X'03' to X'7F' IANA ASSIGNED           o  X'80' to X'FE' RESERVED FOR PRIVATE METHODS           o  X'FF' NO ACCEPTABLE METHODS
   Compliant implementations MUST support GSSAPI and SHOULD support    USERNAME/PASSWORD authentication methods.

------------------------------------------------------------------------------------------------

So if socks proxy has to authenticate the socks client, the username/password would have been supplied already by the client over the socks connection it attempted (so no need for or thoughts for different auth methods if socks is solely used by the client). Also, if no authentication required was chosen by the socks client, and on FortiGate we enabled socks authentication, the connection terminates failing authentication.

 

Best regards,

Jin

3 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
Aug 31, 2024 11:36 AM UTC

Hello Potato, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

 

Thanks, 

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
Sep 2, 2024 9:17 AM UTC

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

Jean-Philippe - Fortinet Community Team
jintrah_FTNT
Staff
Staff
Sep 4, 2024 12:03 PM UTC

Dear Potato,

 

The idea of achieving form based authentication using socks sounds better but I guess its not possible. We must understand how the underlying protocol works.

 

Socks is functioning at layer4 while form based authentication at layer7. Again, when implementing socks authentication defined in rfc 1928 (https://datatracker.ietf.org/doc/html/rfc1928) , the acceptable methods defined in protocol are below,

 

-----------------------------------------------------------------------------------

 The values currently defined for METHOD are:            o  X'00' NO AUTHENTICATION REQUIRED           o  X'01' GSSAPI           o  X'02' USERNAME/PASSWORD           o  X'03' to X'7F' IANA ASSIGNED           o  X'80' to X'FE' RESERVED FOR PRIVATE METHODS           o  X'FF' NO ACCEPTABLE METHODS
   Compliant implementations MUST support GSSAPI and SHOULD support    USERNAME/PASSWORD authentication methods.

------------------------------------------------------------------------------------------------

So if socks proxy has to authenticate the socks client, the username/password would have been supplied already by the client over the socks connection it attempted (so no need for or thoughts for different auth methods if socks is solely used by the client). Also, if no authentication required was chosen by the socks client, and on FortiGate we enabled socks authentication, the connection terminates failing authentication.

 

Best regards,

Jin

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT