Skip to main content
Andrew_C
New Member
Dec 28, 2023 3:42 AM UTC
Question

IPsec VPN Multi VDOM - Remote Access From Windows Native VPN

I am new in FortiGate firewall (60F) and I am trying to create a remote access from Windows native VPN using an IPSec VPN settings on FortiGate. Below are the current settings on 60F.

- 3 VDOM (root, A & B)

- root VDOM has 2 wan interface and has SDWAN setup for failover

- A & B must through root VDOM to have internet access

- Both A & B has VDOM link to connect to root VDOM

How to setup an IPSec VPN remote access on 60C so that users can use Windows native VPN client to remote access servers in VDOM A ? Please assist me on how to get this work, Thanks.

13 replies

akushwaha
Staff
Staff
Dec 28, 2023 4:31 AM UTC
Andrew_C
Andrew_CAuthor
New Member
Dec 28, 2023 6:20 AM UTC

Dear akushwaha,

How to establish the ipsec from wan to vdom A through root vdom ? root vdom is a management vdom and all wan interfaces are managed by it. Thanks.

nweckel
Staff
Staff
Dec 28, 2023 8:52 AM UTC

Hi Andrew_C

You need to create a vdom link between vdom root and vdom A. And create policies to allow traffic from vdom link to WAN and from WAN to vdom link.

You can find a sample configuration in the article below:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-IPSec-VPN-tunnels-on-VDOMs-that-do-not/ta-p/195596 

And for L2TP over IPsec configuration:

https://docs.fortinet.com/document/fortigate/7.4.2/administration-guide/386346 

Toshi_Esumi
SuperUser
SuperUser
Dec 29, 2023 4:27 PM UTC

IPSec-inbound(destined to 192.168.123.144)-->wan2:192.168.123.144(pulled via DHCP)---[VIP-A to 10.0.0.2]--->root-A0[root]/-A1[A](10.0.0.2/30)

Then the policy with the VIP-A is allowing IKE only.

I'm assuming "Dual_WAN" is a zone with wan1 and wan2.

With this IKE attempts coming in should be forwarded to root-a1. If you sniff on the interface, you should be able to see those packets. But once the initial negotiation is done and packets started getting encrypted, those won't get to root-a1 any more.

 

Below is a KB for local-in policies but it explains what services are involved in IPSec.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-port-forwarding-using-FortiGate-VIPs/ta-p/196734

So, you need to allow "ESP" as well.
But you should sniff on the interface like "diag sniffer packet root-a1 'host <source_IP>'" to see what's arriving or what's not on VDOM A side.

 

Toshi

Andrew_C
Andrew_CAuthor
New Member
Dec 30, 2023 6:40 AM UTC

Dear Toshi,

Dual_Wan is a zone of SDWAN included wan1 & wan2 and I don't understand --> (IPSec-inbound(destined to 192.168.123.144)-->wan2:192.168.123.144(pulled via DHCP)---[VIP-A to 10.0.0.2]--->root-A0[root]/-A1[A](10.0.0.2/30)). The policy in root vdom for IPsec inbound like below ?

Incoming Wan2 -- Outgoing root-A0 -- Destination VIP (Wan2 to root-A1) -- Service IKE & ESP

 

Also, it has two policies automatically added in vdom A after create the windows native tunnel using the template and does it need to  add a static route in vdom A ?

 

1.JPG

 

Because I'm new for fortigate, please guide me to do this. Thanks a lot.

Toshi_Esumi
SuperUser
SuperUser
Dec 30, 2023 6:52 PM UTC

I just put your config in a sequence. At this moment, since you said the VPN access packets don't get to root-a1 (VDOM A side) interface, I'm concerning on root vdom config.

My concern now is if the IP:192.168.123.144 that wan2 pulled and you configured in the VIP is a real IP or dummy. If real, the client side can't reach it over the internet since it's a private IP.

If your ISP is handing the private IP, they have NAT in the upstream or at the GW device. So unless the ISP can set a VIP similar to yours toward 192.168.123.144 (has to be "static" IP over DHCP), the clients can't get to your FGT's wan2 over the internet.

Or, is it just a dummy to hide your real public IP? Then at least client's attempts should hit the root-a interface. Don't you see anything in sniffing I posted before?

 

Toshi

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT