Skip to main content
blanni
New Member
January 18, 2013
Question

SSL VPN - Route assigned to client

  • January 18, 2013
  • 8 replies
  • 13341 views
Hi, I' ve inherited a Fortigate 80C from a previous admin. SSL VPN (Tunnel-Mode) for remote clients is configured and working well. When clients log on to the SSL VPN tunnel, they are automatically assigned a route in their local routing table to access our internal network (192.168.10.0/24) and eveything works fine. I now need to add a new internal network subnet (192.168.20.0/24) for the remote clients to get access to. I' ve created a new ssl.root -> LAN policy allowing the SSL VPN clients to access the new subnet on the internal network, the problem is that when clients connect, they are still only provided with a route to 192.168.10.0/24 in their local routing table. The route to 192.168.20.0/24 is not being automatically created, so the client can' t access that subnet. I' ve been through the SSL VPN docs and can' t find the details anywhere for specifying the internal network routes that get assigned to the clients. I assumed that the SSL-VPN policy would have taken care of this bu apparently not. Can anyone help? Thanks

    8 replies

    rwpatterson
    New Member
    January 18, 2013
    Welcome to the forums. Are you using Forticlient or the web interface for SSL VPN connection?
    blanni
    blanniAuthor
    New Member
    January 20, 2013
    Hi Bob, Thanks for the reply. I' m using the web portal for the connection. Thanks
    rwpatterson
    New Member
    January 21, 2013
    Basically, all you should need to do is add the policy. Also if the second subnet is remote to the FGT, a static route must be in place.
    Federico_Vecchiatti
    New Member
    February 5, 2013
    The route for the SSL VPN tunnel are defined in the Portal rule that you configure on the Internet - LAN interface (ie, the rule that bind the SSL-VPN policy to the portal). If you enable connection from Any to LAN1 and LAN1 the route to LAN1 and LAN2 will be enabled on the client when the SSL VPN tunnel start. The ssl.root -> LAN policy act as pure firewall rule. Bye.
    rwpatterson
    New Member
    February 5, 2013
    ORIGINAL: Federico Vecchiatti The route for the SSL VPN tunnel are defined in the Portal rule that you configure on the Internet - LAN interface (ie, the rule that bind the SSL-VPN policy to the portal). If you enable connection from Any to LAN1 and LAN1 the route to LAN1 and LAN2 will be enabled on the client when the SSL VPN tunnel start. The ssl.root -> LAN policy act as pure firewall rule. Bye.
    What?
    rwpatterson
    New Member
    February 5, 2013
    Is the new subnet local to the Fortigate or remote (across another router/firewall)?
    blanni
    blanniAuthor
    New Member
    February 6, 2013
    Hi Guys, Thanks for looking at this. Hi Federico - Could you tell me where to go in the web interface? I' ve been through all of the options under VPN -> SSL and can' t find anything that allows me to set binding rules. Hi Bob - The second subnet is routed via another router on the LAN side of the Fortigate. The routing is in place (I can ping addresses on the second subnet from the Fortigate CLI).
    blanni
    blanniAuthor
    New Member
    February 6, 2013
    OK, I' ve found out some more info on this. I looked again at the ssl -> LAN policy and noticed that the ' Action' was set to Allow instead of SSL-VPN If I change the Action to SSL-VPN and reconnect the client, it does indeed receive routes to both subnets BUT all communication from the SSL client to internal LAN stops working. Any idea why I would be able to successfully communicate with the internal LAN (albeit only one subnet!) when the action is set to Allow, but not when the action is set to SSL-VPN? Thanks
    rwpatterson
    New Member
    February 6, 2013
    If the VPN is in interface mode, then the action is truly ' ACCEPT' . ' SSL-VPN' (action = ' ENCRYPT' ) is for policy mode tunnels. The two modes are not interchangeable. Chances are that the IP address of the SSL VPN is not allowed across the second WAN VPN link. The way I would solve this is to create an IP pool with a single address from the LAN subnet that' s not being used, and attach it to the ' SSL-VPN -> remote' subnet policy. This would source NAT the SSL-VPN traffic to appear to originate from the LAN, which already has permission to cross that leg.
    blanni
    blanniAuthor
    New Member
    February 6, 2013
    OK, I know where I was going wrong now. I' ve managed to crack it with another read through the Fortinet SSL VPN documentation. I think the first mistake I made was that the ssl -> LAN policy was set to ' ACCEPT' instead of ' SSL-VPN' as detailed in a previous post. When I changed this to ' SSL-VPN' , the routes were advertised to the client as expected. The reason I then couldn' t access any resources on the internal LAN is that you also need an ' ACCEPT' policy in addition to the ' SSL-VPN' policy. Apparently for a tunnel mode VPN, the first (SSL-VPN) policy sets up the authentication / client routing, and the second (ACCEPT) policy actually allows the traffic to pass from the client to the internal LAN. All this is in the SSL VPN documentation, but I obviously missed it! Looks like if you only have the ACCEPT policy, the VPN connection sort-of works, but the routes are not advertised to clients. I now have both policies in place and everything is working well! Thanks for your help. **EDIT** I think all of this is exactly what Federico was getting at in his earlier post.
    rwpatterson
    New Member
    February 6, 2013
    Are you using policy based tunnels?
    Federico_Vecchiatti
    New Member
    February 8, 2013
    ORIGINAL: blanni **EDIT** I think all of this is exactly what Federico was getting at in his earlier post.
    Ok, my english is not so good, but that was the info ... Remote routing is configured by the Internet - PortXX rule (with Action SSL_VPN). When you configure the policy with an ANY to LAN1 you are allowing connection to LAN1 from the SSL portal but you are also " passing" LAN1 route to the remote client (if it connect with the VPN client ..). With the ssl.root - PortXX rule (with ACCEPT) you allow the traffic from the VPN ssl client. If you don' t need Portal Access VPN, just add only ping as the service in the SSL portal that you bind to the SSL VPN rule (so if the user connect to the SSL portal instead of using the SSL VPN client, he cannot bypass the ssl.root - PortXX rule). Bye !
    rwpatterson
    New Member
    February 8, 2013
    For what it' s worth, I don' t use the ' any' interface. I lock my units down more than that, so my traffic is from WAN -> SSL.root -> inside port(s). There is now way traffic could bypass the ssl.root interface and get anywhere. Still takes 2 policies, but I know who/what/where all the traffic is allowed to go. My 2 cents