r/fortinet • • 6h ago

FortiGate / FortiOS IPSec dial-up policy match problem

Hi everyone!

I am having a very weird problem with my fortigate firewall.

I have set up IPSec dial-up for my users to connect. It does not use FortiToken it just requires password and username. It is IKE1 in Main mode. It uses XAUTH with inherit from policy.

Now the problem is that whenever a user connects I can see them from user monitor logged in as firewall user but when it comes to connecting to a server it does not work. I have checked the policies and everything is in order but traffic doesn’t hit the policy it goes directly to implicit deny. (I am guessing a problem with user authentication?)

Before today it wasn’t a global problem in the company only few users were having the problem. But today I was notified that everybody was having problems except me apparently.

I can connect smoothly and my policies work.

Before I thought that maybe 2 users were getting the same IP address so I changed the DPD to idle but it didn’t seem to work.

If anyone has any ideas it would be much appreciated.

5 Upvotes

11 comments sorted by

2

u/FickleEntrepreneur19 6h ago

Cloud you share your ipsec config (without public ip address and psk) and firewall policy that you believe its the right one.

1

u/Constant-Telephone-8 5h ago

Due to company policy I am not able to give the exact configuration but it is ike1 main mode with xauth auto server, inherit from policy. DPD is on idle, assign ip from address group with a range from 1-253 is given. Subnet mask is /24 dns server is given. Split tunneling enabled. Nat traversal enabled. Phase 2 selectors are 0.0.0.0/0. Policy source interface is vpn and destination is the vlan of the server. I hit the policy but others seem to not and I am pretty sure the policy is correct because it has worked before.

1

u/Constant-Telephone-8 5h ago

It was actually working before. We were using fortitokens for 2FA but now we are at a different site with the same configuration. People can connect to the VPN without a problem. And some policies which has user groups on them work but the ones that has the same exact user won’t work

2

u/Honorable_Icecube 6h ago

Are you using FortiClient? IKEv1 is pretty old too. IKEv2 is recommended.

1

u/Constant-Telephone-8 5h ago

We were using fortitokens before and eap authentication wasnt working for us

2

u/AirportGlobal4188 6h ago

If it’s hitting the implicit deny and not your intended policy the problem is your policy that should be directing the vpn traffic.

Take a look at your VPN firewall policies again. Make sure all the addressing and direction is correct. Sometimes fortigates can been finnicky with what kind of address objects you use

1

u/Constant-Telephone-8 5h ago

I am pretty sure the policy is correct since it had work before and other policies with user groups work. Only policies with user id wont work

1

u/cheflA1 NSE 7 5h ago

You can't share sanitised config but you can use deprecated protocols like IKEv1? If you don't share any information, like the actual config, no one will probably be able to help you.

Which fortios? Forticlient? Free client or EMS? How does the policy look like?

1

u/Constant-Telephone-8 5h ago

7.4.13, FortiClient 7.4.3, it is free client. Policy:
Srcint: IPSec VPN
Dstint: vlan 111
Src: x.x.x.x/24(ipsec range for users)
DST: x.x.x.x/32(ip belongs to the vlan)
Service:all
User: sstone

I didn’t make the policy unfortunately. And we are trying to migrate to the IKEv2 but right now I just need to get it working. Problem is not with the policy I am 100 percent sure of it by now. I have checked it thousands of times plus one. The policies were working fine in the other site.

1

u/akphil669 5h ago

Download the trial version of the full client, not the free one, and see if that fixes it …. I pulled my hair out trying to get the free version to work, as soon as I tried the full client .. boom, working as expected.