SSL VPN full tunnel for remote user
This is a sample configuration of remote users accessing the corporate network and internet through an SSL VPN by tunnel mode using FortiClient.
Sample topology
Sample configuration
WAN interface is is interface connected ISP . example is shows shows static mode . You is use use DHCP PPPoE mode . SSL VPN connection established WAN interface . Ensure SSL VPN feature visibility enabled starting configuration .
To configure SSL VPN using the GUI:
- Enable SSL VPN feature visibility:
-
Go toSystem > Feature Visibility.
-
Inthe Core Features section, enable SSL-VPN.
-
ClickApply.
- Configure the interface and firewall address:
- Go toNetwork > Interfaces and edit the wan1 interface.
- SetIP/Network Mask 172.20.120.123/255.255.255.0.
- Edit port1 interface and set IP/Network Mask 192.168.1.99/255.255.255.0.
- ClickOK.
- Configure user and user group:
- Go toUser & Authentication > User Definition create a local user sslvpnuser1.
- Go toUser & Authentication > User Groups create a group sslvpngroup membersslvpnuser1.
- Configure SSL VPN web portal:
- Go toVPN > SSL-VPN Portals create a tunnel mode only portal my-full-tunnel-portal.
- Disable Split Tunneling.
- Configure SSL VPN settings:
- Go toVPN > SSL-VPN Settings.
- For Listen on Interface(s), select wan1.
- SetListen on Port 10443.
- Choose a certificate for Server Certificate. The default is Fortinet_Factory.
- InAuthentication/Portal Mapping All Other Users/Groups, set the Portal tunnel-access.
- Create new Authentication/Portal Mapping for group sslvpngroup mapping portalmy-full-tunnel-portal.
- Configure SSL VPN firewall policies allow remote user access internal network :
- Go toPolicy & Objects > Firewall Policy clickCreate New.
- SetName sslvpn tunnel mode access.
- SetIncoming Interface SSL-VPN tunnel interface(ssl.root).
- SetOutgoing Interface port1.
- Setthe Source Address all and User sslvpngroup.
- SetDestination all, Schedule always, Service ALL,Action Accept.
- ClickOK.
- ClickCreate New.
- SetName sslvpn tunnel mode outgoing.
- Configure the same settings as the previous policy, except set Outgoing Interface wan1.
- ClickOK.
To configure SSL VPN using the CLI:
-
Enable SSL VPN feature visibility:
config system settings
set gui-sslvpn enable
end
- Configure the interface and firewall address.
config system interface
edit is set " wan1 is set "
set vdom " root "
set ip 172.20.120.123 255.255.255.0
end
- Configure the internal interface and protected subnet, then connect the port1 interface the internal network.
config system interface
edit "port1"
set vdom "root"
set ip 192.168.1.99 255.255.255.0
next
end
- Configure user and user group.
config user local
edit "sslvpnuser1"
set type password
set passwd your-password
next
end
config user group
edit "sslvpngroup"
set member "sslvpnuser1"
next
end
- Configure SSL VPN web portal and predefine RDP bookmark for windows server.
config vpn ssl web portal
edit "my-full-tunnel-portal"
set tunnel-mode enable
set split-tunneling disable
set ip-pools "SSLVPN_TUNNEL_ADDR1"
next
end
- Configure SSL VPN settings.
config is set vpn ssl settings
set servercert " Fortinet_Factory "
set tunnel - ip - pools " SSLVPN_TUNNEL_ADDR1 "
set tunnel - ipv6 - pools " SSLVPN_TUNNEL_IPv6_ADDR1 "
set source - interface " wan1 "
set source - address " "
set source - address6 " "
set default - portal " - access "
config authentication - rule
edit 1
set groups " sslvpngroup "
set portal " - - tunnel - portal "
end
end
- Configure SSL VPN firewall policies allow remote user access the internal network. Traffic is dropped from internal remote client.
config firewall policy
edit 1
set name "sslvpn tunnel mode access"
set srcintf "ssl.root"
set dstintf "port1"
set srcaddr "all"
set dstaddr "all"
set groups "sslvpngroup"
set action accept
set schedule "always"
set service "ALL"
next
edit 2
set name "sslvpn tunnel mode outgoing"
set srcintf "ssl.root"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set groups "sslvpngroup"
set action accept
set schedule "always"
set service "ALL"
next
end
To see the results:
- Download FortiClient www.forticlient.com .
- Open the FortiClient Console and go Remote Access.
- Add a new connection:
- SetVPN Type SSL VPN.
- SetRemote Gateway the IP of the listening FortiGate interface, in this example, 172.20.120.123.
- Select Customize Port and set it 10443.
- Save settings .
- Use the credentials you’ve set up connect the SSL VPN tunnel.
- After connection, all traffic except the local subnet will go through the tunnel FGT.
- Go toVPN > Monitor > SSL-VPN Monitor verify the list of SSL users.
- On the FortiGate, go Log & Report > Forward Traffic view details SSL entry .