Skip to main content
IrbkOrrum
Explorer III
December 11, 2024
Solved

Remote Access IPSec VPN to sub-VDOM

  • December 11, 2024
  • 2 replies
  • 6992 views

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.

Best answer by IrbkOrrum

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*

2 replies

Toshi_Esumi
SuperUser
SuperUser
December 11, 2024

Which VDOM terminate the IPSec VPNs; root or VDOM-A? If VDOM-A, you should see "icmp" packets at the root vdom in sniffing. It should be encapsulated in either UDP 500 (like in the first screen shot) or 4500 if pinged toward 10.10.0.0/16.

Toshi

IrbkOrrum
IrbkOrrumAuthor
Explorer III
December 11, 2024

It's VDOM-A.  I don't see any packets for the VPN connection with a "diag sniffer packet any 'host 40.40.40.35'" regardles of if I'm running it in Root or VDOM-A context.
If I try to browse 40.40.40.35, I can see the traffic (there isn't anything there to 'browse' but I see the traffic so I know the VIP/firewall rules are passing the traffic through).  If I do a ping I can see the traffic.  When I try to do the VPN connection, I see no traffic.  Just to be perfectly clear, it's during the attempt at making the VPN connection that I'm not seeing any traffic.  The client side times out and I do not see any inbound traffic to the IP.  So the VPN isn't even connecting.

Toshi_Esumi
SuperUser
SuperUser
December 11, 2024

The 40.40.40.35 is on the port1 IP and you forwarded UDP 500/4500 to 10.2.2.2, right? I'm assuming you didn't forward ICMP to 10.2.2.2. What exactly did you ping from the client machine? Through the tunnel and 10.10.x.x/16? Is the tunnel up? or that's what you're troubleshooting?

Toshi

IrbkOrrum
IrbkOrrumAuthorAnswer
Explorer III
December 11, 2024

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*