Skip to main content
matchelo
Explorer
May 26, 2024
Question

protect web server configured with vip by https

  • May 26, 2024
  • 1 reply
  • 1815 views

i have configured virtual ip to reach a web serveur in my local lan. i works, but traffic is http.

i want people reach my web server with https.

what is the solution ?

I Have checked virtual server , but my fortigate 100 d (forti os version 5.2) don't display https in the configuration.

is there a solution please.

1 reply

Dhruvin_patel
Staff
Staff
May 26, 2024

Greetings, 

 

Please try the following steps:

 

1. Create a Virtual IP for HTTPS traffic:

 

- Access the FortiGate CLI.

- Configure a Virtual IP with server-type set to https.

- Set the external IP, interface, server-type as https, and the appropriate port (443).

- Add the real servers with their IP addresses and port 443.

- Set the SSL certificate for HTTPS traffic.

 

2. Enable HTTP to HTTPS redirect for the Virtual IP:

 

- Configure the Virtual IP with server-type set to http.

- Enable the http-redirect option for this Virtual IP.

 

3. Add the Virtual IPs to a policy:

 

- Create a firewall policy that includes the Virtual IPs for both HTTP and HTTPS traffic.

- Set the appropriate source and destination interfaces, addresses, services, and actions.

 

By following these steps, you can configure your FortiGate 100D to allow users to reach your web server using HTTPS instead of HTTP.

 

Regards!

If you have found a solution, please like and accept it to make it easily accessible for others.