---
title: Using MFA for HTTP/HTTPS Proxy
slug: singleconnect-reference-guide-3-2-0/using-mfa-for-httphttps-proxy
description: Learn how to enable multi-factor authentication (MFA) for HTTP proxies in this comprehensive document. Discover the prerequisites and step-by-step configuration instructions, including the requirement of MFA tokens after logging in with Single Connect cre
docTags: 
createdAt: 2022-07-31T17:57:14.000Z
---

MFA can be used as an enhanced security level for HTTP proxies. When opening a web browser, the user is asked for their Single Connect credentials to connect to the HTTP Proxy. After the successful log in, and if MFA is activated for HTTP Proxy, an MFA token is required. When using the Single Connect Desktop Client, the MFA token is required when the user opens the webpage.
To enable MFA for HTTP Proxy:

1. Pre-requisite: Admin and users have the QR code, installed the Single Connect mobile app, scanned the QR code with the mobile app, and MFA is enabled for the user group that will be using MFA for HTTP connections.&#x20;
2. Establish an SSH connection to Single Connect as th&#x65;**&#x20;pamuser** user.
3. Edit th&#x65;**&#x20;proxy.properties** file with the command:
   vi /u01/http-proxy/conf/http\_proxy.properties
   Check the configuration file to see if the parameter below is already configured in it. If not, add the lines below. If there is a hash (#) sign in front of the parameters, delete the hash (#) sign to activate the parameter. If the parameter value is “false”, change it to “true”. To type or add anything in the vi editor, first press the Insert button on the keyboard, then type in the necessary line. Press Esc to exit typing mode. To save the file press Esc, then a colon (:), type in **wq!** and press Enter. If you do not want to save the changes to the file, press Esc, then a colon (:), then type in **q!** and press Enter.
   **http.proxy.otp.enabled=true**
   **http.proxy.connection.initial.otp.enabled=false**
   *http.proxy.connection.initial.otp.enabled&#x20;*&#x70;arameter is set false by default.
   If this parameter is set to true, then after successful authentication to HTTP Proxy MFA will be requested regardless of the target device if an authenticated user had defined a User Group that MFA enabled.

4. Restart the HTTP Proxy with the command:
   **systemctl restart pam-http**

After these steps, OTP will be required at the next HTTP Proxy log in.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/4W7rtfA6zW7QcdEnuQd9k_image.png "Enabling MFA for Website Access ")

