SSL-VPN using the browser [FortiGate Firewall]

 Network Diagram:




Configuration:

Interface:

config system interface
       edit "port2"
        set vdom "root"
        set ip 10.10.10.108 255.255.255.0
        set allowaccess ping ssh http
        set type physical
        set alias "LAN"
        set snmp-index 2
    next
    edit "port3"
        set vdom "root"
        set ip 14.140.40.108 255.255.255.0
        set allowaccess ping https ssh
        set type physical
        set alias "WAN"
        set lldp-reception enable
        set role wan
        set snmp-index 3
    next

 

Address book:

config firewall address

edit "SSLVPN_TUNNEL_ADDR1"
        set uuid ad606276-d523-51ec-bf32-87226020dd8c
        set type iprange
        set start-ip 10.212.134.200
        set end-ip 10.212.134.210
    next
edit "14.140.40.0/24"
        set uuid 1985c2e4-0caa-51ed-73e9-f60c5378342e
        set associated-interface "port3"
        set subnet 14.140.40.0 255.255.255.0
    next

Policy:

config firewall policy
    edit 3
        set name "allow"
        set uuid 707d673a-0ca7-51ed-0f95-6ebc0f5815d5
        set srcintf "ssl.root"
        set dstintf "port3"
        set action accept
        set srcaddr "all"
        set dstaddr "14.140.40.0/24"
        set schedule "always"
        set service "ALL"
        set users "test"
    next
end

User:

config user local

edit "test"
        set type password
        set passwd-time 2022-07-25 23:10:37
        set passwd ENC sMIT5FQP9O11aMYZsvbUxwibxt08nQwW0ko5FSYtljFrcpbUK7kndnQRqKZXFrbrnf+dbfJ9AkAf2KCDECb8d4KGrjoyXoJ2LJFVHvanMSC0535fO+C854QG2YasD4lL9YDwVjpY39JjebY7aGrjR+xRPR98PpRc23/19W2s68Lg7/3UU6eZgfGfegOYnB2kLJszXQ==
    next
end

SSL VPN:

config vpn ssl web portal
    edit "full-access"
        set tunnel-mode enable
        set ipv6-tunnel-mode enable
        set web-mode enable
        set ip-pools "SSLVPN_TUNNEL_ADDR1"
        set ipv6-pools "SSLVPN_TUNNEL_IPv6_ADDR1"
    next
end
    edit "full-access"
        set tunnel-mode enable
        set ipv6-tunnel-mode enable
        set web-mode enable
        set ip-pools "SSLVPN_TUNNEL_ADDR1"
        set ipv6-pools "SSLVPN_TUNNEL_IPv6_ADDR1"
    next
end
config vpn ssl settings
    set servercert "SSL"
    set tunnel-ip-pools "SSLVPN_TUNNEL_ADDR1"
    set tunnel-ipv6-pools "SSLVPN_TUNNEL_IPv6_ADDR1"
    set port 4430
    set source-interface "port2"
    set source-address "all"
    set source-address6 "all"
    set default-portal "full-access"
    config authentication-rule
        edit 1
    set source-address "all"
    set source-address6 "all"
    set default-portal "full-access"
    config authentication-rule
        edit 1
            set users "test"
            set portal "full-access"
        next
    end
end


















Comments

Popular posts from this blog

Configure IPsec site-to-site VPN in Linux Machine

TACACS+ Installation on Linux [CentOS]

Free Radius setup/configuration in Linux [Ubuntu/CentOS]