SSLVPN tunnel mode not working
Hi,
I have a problem with SSLVPN, but only with tunnel mode. I don't now why is not working. Below the settings:
SSLVPN:
config vpn ssl settings set servercert "Fortinet_Factory" set idle-timeout 1800 set tunnel-ip-pools "SSLVPN_ITP_DT" (address 10.240.240.0/24) set dns-server1 172.19.193.1 set dns-server2 8.8.8.8 set port 55443 set source-interface "wan1" set source-address "all" set source-address6 "all" set default-portal "web-access" config authentication-rule edit 1 set groups "ITP_TECHNICAL" set portal "ITP_DT" next end end
EXAMPLE POLICY FOR SSLVPN to ADDRESS 172.16.10.0/24
config firewall policy edit 52 set uuid 701cdeb4-ebad-51e5-4a6e-991f5651c53b set srcintf "ssl.root" set dstintf "VPN_Prom" set srcaddr "SSLVPN_ITP_DT" set dstaddr "PROM" (172.16.10.0/24) set action accept set schedule "always" set service "ALL" set logtraffic disable set groups "ITP_TECHNICAL" set nat enable set ippool enable set poolname "fortigate" - NAT TO LOCAL ADDRESS FORTIGATE 172.19.192.1 next end
Below diagnose flow tracing:
diagnose debug flow filter daddr 172.16.10.100
fg # id=20085 trace_id=576 func=print_pkt_detail line=4471 msg="vd-root received a packet(proto=1, 10.240.240.1:1->172.16.10.100:8) from ssl.root. code=8, type=0, id=1, seq=362." id=20085 trace_id=576 func=init_ip_session_common line=4622 msg="allocate a new session-01144722" id=20085 trace_id=576 func=vf_ip4_route_input line=1596 msg="find a route: flags=00000000 gw-172.16.10.100 via VPN_Promag" id=20085 trace_id=576 func=fw_forward_handler line=675 msg="Allowed by Policy-52: SNAT" id=20085 trace_id=576 func=__ip_session_run_tuple line=2599 msg="SNAT 10.240.240.1->172.19.192.1:62464" id=20085 trace_id=576 func=ipsecdev_hard_start_xmit line=121 msg="enter IPsec interface-VPN_Prom" id=20085 trace_id=576 func=esp_output4 line=897 msg="encrypting, and send to PUBLIC_IP_DEST with source PUBLIC_IP" id=20085 trace_id=576 func=ipsec_output_finish line=232 msg="send to PUBLIC_IP via intf-wan1"
Of course form fortigate i get correct route to this network:
0.0.0.0 0.0.0.0 172.19.192.1 172.19.192.121 10 10.9.101.0 255.255.255.0 10.240.240.2 10.240.240.1 10 10.21.0.0 255.255.254.0 10.240.240.2 10.240.240.1 10 10.240.240.1 255.255.255.255 On-link 10.240.240.1 266 91.238.62.118 255.255.255.255 172.19.192.1 172.19.192.121 10 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306 172.16.10.0 255.255.255.0 10.240.240.2 10.240.240.1 10 172.16.50.0 255.255.255.0 On-link 172.16.50.130 266 172.16.50.130 255.255.255.255 On-link 172.16.50.130 266 172.16.50.255 255.255.255.255 On-link 172.16.50.130 266 172.19.192.0 255.255.252.0 On-link 172.19.192.121 266 172.19.192.0 255.255.252.0 10.240.240.2 10.240.240.1 10 172.19.192.121 255.255.255.255 On-link 172.19.192.121 266 172.19.195.255 255.255.255.255 On-link 172.19.192.121 266 172.19.196.0 255.255.254.0 10.240.240.2 10.240.240.1 10 172.21.10.0 255.255.254.0 10.240.240.2 10.240.240.1 10 172.21.12.0 255.255.254.0 10.240.240.2 10.240.240.1 10 192.168.0.0 255.255.255.0 10.240.240.2 10.240.240.1 10 192.168.0.51 255.255.255.255 10.240.240.2 10.240.240.1 10 192.168.135.0 255.255.255.0 On-link 192.168.135.1 276 192.168.135.1 255.255.255.255 On-link 192.168.135.1 276 192.168.135.255 255.255.255.255 On-link 192.168.135.1 276 192.168.200.50 255.255.255.255 10.240.240.2 10.240.240.1 10 192.168.240.0 255.255.255.0 10.240.240.2 10.240.240.1 10 224.0.0.0 240.0.0.0 On-link 127.0.0.1 306 224.0.0.0 240.0.0.0 On-link 192.168.135.1 276 224.0.0.0 240.0.0.0 On-link 172.19.192.121 266 224.0.0.0 240.0.0.0 On-link 172.16.50.130 266 224.0.0.0 240.0.0.0 On-link 10.240.240.1 266 255.255.255.255 255.255.255.255 On-link 127.0.0.1 306 255.255.255.255 255.255.255.255 On-link 192.168.135.1 276 255.255.255.255 255.255.255.255 On-link 172.19.192.121 266 255.255.255.255 255.255.255.255 On-link 172.16.50.130 266
The problem with the tunnel mode occurs using both split tunnel, and without it.
