Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
IrbkOrrum
Contributor

Remote Access IPSec VPN to sub-VDOM

I'm playing with another VDOM setup.  This time the Root vdom will hold the primary traffic while a sub vdom will only have an inbound IPSec VPN connection for remote clients to connect too via forticlient.  I've got the root vdom setup and it's passing traffic correctly. The VPN terminates at VDOM-A.

Here is a network map

Screenshot_1.jpg

I've got a VIP at the root vdom that's passing traffic through to the 10.2.2.2 IP.  I've got the firewall rule at root that's allowing traffic inbound to the VIP.  In VDOM-A, I've got VPN configured with the 10.2.2.2 interface (the intervdom link) so it should be all setup correctly.  The "external" (this is all in a lab, no actual real IPs involved) IP for the IPSec VPN is 40.40.40.35.  When I try to connect from a VPN client, the connection just times out and won't connect.

If I run a "diagnose sniffer packet any 'host 40.40.40.35'" and run a ping 40.40.40.35 from the VPN client, I see traffic.  However, when I actually try to connect with FortiClient I don't see ANY traffic.  On the client side I can see the traffic going out, but on the Root or VDOM-A side, I see no traffic at all and I'm lost as to what I've got wrong.

So this is a fortinet on the client side
Screenshot_2.jpg

You can see the ping go out.  Then you can see the IPSec connection attempt.
However, on the vdom a side
Screenshot_3.jpg

You can see the ping traffic, but then nothing at all.  It makes no difference if I run the diag at the root or VDOM-A context.  I can see the ICMP traffic sent by the client to 40.40.40.35.  I can even see port 80 traffic if the client tries to browse to 40.40.40.35.  When the client tries the VPN connection though, I don't see any traffic.

1 Solution
IrbkOrrum
Contributor

OMG guys, I'm an idiot.  I'm thinking that the problem is with the VDOM because I'm learning that and don't fully understand it.  So that's where the problem has to be, right?
Well Mr idiot here, for WHATEVER reason, on the client side didn't have an "any" rule set up.  I was only allowing ICMP and HTTP outbound.  OMG.  I've spent SO much time troubleshooting the wrong side. *facepalm*

View solution in original post

20 REPLIES 20
Toshi_Esumi

For VPN, you need to run IKE debug at VDOM-A where the VPN is terminated at.

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-IPsec-Tunnel-debugging-IKE/ta-p/1900...

 

Toshi

IrbkOrrum

Nothing shows when I do that.

IrbkOrrum

Perhaps this will supply more clarity.

Screenshot_1.jpgScreenshot_2.jpg

Toshi_Esumi

No. Those icmp packets are not inside the VPN tunnel. Outside. Or, nothing to do with the VPN.
Those UDP 500 packets are the VPN attempts. But since you're filtering with the host IP 40.40.40.35, you don't see the forwarded packet to 10.2.2.2 because those packet don't have the 40 IP any more.

Again you have to sniff/IKE debug on VDOM-A side. Not at root vdom.

Toshi

IrbkOrrum

I respectfully disagree.  When tested in another known working config, it does not matter what context the debug is run in.  When I figured out the issue, I instantly started seeing the traffic even though I was in a root vdom context.

Screenshot_4.jpg

Toshi_Esumi

Then you're NOT terminating the VPN at the VDOM-A interface.

IrbkOrrum

Root vdom has no VPN configured.  The only VPN that is configured is in VDOM-A.

Toshi_Esumi

I'm leaving for the airport. So share your config with @dingjerry_FTNT and get it troubleshot.

Toshi

IrbkOrrum

Just FYI - from the VDOM-A context (which I call 'Bubble') 

Screenshot_5.jpg

So you can see it does not matter what context you run the debug in.  I see the traffic in both.

dingjerry_FTNT

Hi @IrbkOrrum ,

 

Could you please attach the FGT config?

Regards,

Jerry
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors