SSL VPN custom landing page
An SSL VPN web mode user can log in to the web portal and be redirected to a custom landing page. The custom landing page can be configured in VPN > SSL-VPN Portals by setting the portal Landing page to Custom or by using the command config landing-page
.
The landing page can accept SSO credentials as well as SSO from form data. This allows administrators to streamline web application access for their users. The custom redirected portal has a logout button so that when users log out from the web application, they are also logged out from the SSL VPN web connection.
Example
In the following example, the SSL VPN web portal settings are configured so that the URL of the custom landing page of FGT_A is set to the FGT_B login page. Therefore, when a web user is logging into FGT_A's SSL VPN web portal, they will automatically be redirected to FGT_B, where the SSO username and password are passed into the username and password input fields. This allows for single sign on of the connecting user into FGT_B through the SSL VPN.
To configure a custom landing page from the CLI:
-
Configure the user and user group:
config user local edit "custom_landing_user" set type password set passwd ******** next end config user group edit "ssl-web-group" set member "custom_landing_user" next end
-
Configure the SSL VPN web portal:
config vpn ssl web portal edit "custom_landing" set web-mode enable set landing-page-mode enable config landing-page set url "https://172.16.200.2/login" set sso static config form-data edit "username" set value "admin" next edit "secretkey" set value "1" next end set sso-credential alternative set sso-username "admin" set sso-password ******** end next end
-
Configure the SSL VPN settings:
config vpn ssl settings set servercert "fgt_gui_automation" set tunnel-ip-pools "SSLVPN_TUNNEL_ADDR1" set tunnel-ipv6-pools "SSLVPN_TUNNEL_IPv6_ADDR1" set port 1443 set source-interface "port1" set source-address "all" set source-address6 "all" set default-portal "full-access" config authentication-rule edit 2 set users "custom_landing_user" set portal "custom_landing" next end set encrypt-and-store-password enable end
-
Configure the firewall policy:
config firewall policy edit 1 set name "testpolicy" set srcintf "ssl.root" set dstintf "wan1" set action accept set srcaddr "all" set dstaddr "all" set srcaddr6 "all" set dstaddr6 "all" set schedule "always" set service "ALL" set logtraffic all set nat enable set groups "ssl-web-group" set users "custom_landing_user" next end
To configure a custom landing page from the GUI:
-
Configure the user and user group:
-
Go to User & Authentication > User Definition to create the
custom_landing_user
user. -
Go to User & Authentication > User Groups to create the
ssl-web-group
user group with the membercustom_landing_user
.
-
-
Configure the SSL VPN web portal:
-
Go to VPN > SSL-VPN Portals.
-
Click Create New.
-
Enter
custom_landing
as the Name. -
Enable custom Web Mode features:
-
Enable Web Mode.
-
Set Landing Page to Custom.
-
Enter the FGT_B login page URL.
-
Enable SSO Credentials and select Alternative.
-
Enable SSO form data and enter the form keys and values.
-
-
Click OK.
-
-
Configure the SSL VPN settings:
-
Go to VPN > SSL-VPN Settings.
-
Set Listen on Interface(s) to port1.
-
Set Listen on Port to 1443.
-
Set Server Certificate to fgt_gui_automation.
-
Create a new Authentication/Portal Mapping for group ssl-web-group mapping the portal custom-landing.
-
Click Apply.
-
-
Configure the firewall policy:
-
Go to Policy & Objects > Firewall Policy and click Create New.
-
Configure the following settings:
Name testpolicy Incoming Interface ssl.root Outgoing Interface wan1 Source all
custom_landing_user
ssl-web-group
Destination all Schedule always Service ALL Action ACCEPT -
Enable NAT.
-
Enable Log Allowed Traffic and set it to All Sessions.
-
Click OK.
-
Once the SSL VPN web portal is configured, the connected user can access FGT_B through the FGT_A SSL VPN web portal.
To access FGT_B through the FGT_A SSL VPN web portal:
-
Enter your SSO credentials in the SSL VPN login fields.
The landing page is redirected to the FGT_B GUI automatically.