Skip to main content
lamkayiu
Visitor III
April 7, 2022
Solved

Fortigate ZTNA Tag added in policy, SSLVPN cannot access local LAN

  • April 7, 2022
  • 3 replies
  • 15585 views

Dear All

 

I just purchased EMS last week and setup finished, everything seems fine at EMS server. I want to use EMS ZTNA to control SSLVPN user who only match zero trust tag can access lan server. When I added the tag make my SSLVPN cannot access my Local LAN, removed it everything is fine. Any step I am missing or incorrect setup ?

 

Resolved Address can see my vpn ip

lamkayiu_7-1649323771907.png

View matched endpoint can see my laptop, but it still show 0  when I move the mouse on it.

lamkayiu_0-1649324819461.png

lamkayiu_1-1649324901354.png

 

 

 

 

Firewall policy added tag - cannot access lan server

lamkayiu_6-1649323657937.png

Removed tag everything fine

lamkayiu_9-1649324058923.png

Connection is ok

lamkayiu_0-1649324525584.png

 

 

 I can view all zero trust tag at EMS portal

lamkayiu_0-1649323033935.png

lamkayiu_3-1649323236572.png

 

Creat new tag "Test" and fortigate also can show up

lamkayiu_1-1649323092799.png

 

 

 

 

Best answer by Debbie_FTNT

To see the tags on the client itself, you have to enable this in the EMS profile for the endpoint under Advanced > System Settings:

Debbie_FTNT_0-1649751735492.png

But that only makes the tags visible on the endpoint, so you can verify there that it has the tags.

The policy being applied or not is still up to the FortiGate.
If you have all that configuration in place but the issue persists, I would suggest opening a ticket with Technical Support to get some more in-depth assistance, beyond what I can offer in the Forums here.

3 replies

Debbie_FTNT
Staff & Editor
Staff & Editor
April 8, 2022

Hey lamkayiu,

 

you can use EMS tags on VPN policies.

However, you need to make sure the following is in place:
-> the EMS tag is associated with the tunnel IP, not only the local LAN IP of the client

-> If you have no split-tunneling, the FortiClient must be able to reach EMS through VPN tunnel

 

I have a functioning setup with the following:

- one policy from VPN to DNS and no tag (client needs to be able to resolve EMS FQDN before reaching EMS)
- one policy from VPN to EMS and no tag (client needs to connect to EMS first through VPN tunnel before getting updated tags)

- one default policy from VPN to local LAN and tags set

If FortiGate does not associate the tunnel IP with the tags (and it can only do that when EMS associates the tags with tunnel IP as well), then no access is possible.

lamkayiu
lamkayiuAuthor
Visitor III
April 11, 2022

Hi Debbie

I had tried both full access and split, same result.

Any capscren for below setup ? I am very new in fortigate.

- one policy from VPN to DNS and no tag (client needs to be able to resolve EMS FQDN before reaching EMS)

VPN to DNS , what is the outgoing interface ?
- one policy from VPN to EMS and no tag (client needs to connect to EMS first through VPN tunnel before getting updated tags)

Same as above, what is the outgoing interface ?

abc
New Member
April 11, 2022

Are you sure this works. We are trying to do the same thing and having the exact same issue.

I can see the tag has applied fine to the client using the tunnel IP but no traffic is being allowed.

There are polices above this that allow EMS traffic along with dns etc.

I have even tried a generic tag that matches all machines. The machine in question shows up in the list but still can't access resources.

lamkayiu
lamkayiuAuthor
Visitor III
April 11, 2022

Hi

 

We are still keep trying but still not fix this issue, how about you ?

Debbie_FTNT
Staff & Editor
Staff & Editor
April 11, 2022

Some screenshots from my lab:
policies (the third one with VPN tag):

Debbie_FTNT_0-1649674639268.png

win-server-2016 (10.0.0.200) is hosting the EMS

win-server-2019 (10.0.0.254) is a DNS server (to resolve EMS hostname to EMS IP)

Endpoint and Tag:

Debbie_FTNT_3-1649676555660.png

 

Debbie_FTNT_2-1649676538661.png

Debbie_FTNT_5-1649676761377.png

traffic through policy 11 (ping from vpn client to 10.0.0.254):

Debbie_FTNT_1-1649676514283.png

I do have to wait a minute or two for EMS to have the updated client IP after VPN is established; then my VPN client is able to access resources through a policy with tags.

martin28
New Member
May 18, 2022

Hello,

It is a known bug that forticlient cannot get VPN IP address correctly, we will have to wait for another release to fix this bug.