Courseiva
Advanced VPN and Zero TrusthardMultiple ChoiceObjective-mapped

NSE7 Advanced VPN and Zero Trust Practice Question

Exhibit

Refer to the exhibit.

config system interface
    edit "to_remote"
        set vdom "root"
        set ip 10.0.1.1 255.255.255.252
        set type tunnel
        set remote-ip 10.0.1.2 255.255.255.252
        set interface "wan1"
    next
end

config vpn ipsec phase1
    edit "vpn_1"
        set interface "wan1"
        set peertype any
        set net-device enable
        set proposal aes256-sha256
        set dhgrp 14
        set remote-gw 203.0.113.1
        set psksecret ********
    next
end

config vpn ipsec phase2
    edit "vpn_2"
        set phase1name "vpn_1"
        set proposal aes256-sha256
        set src-subnet 10.0.1.0 255.255.255.252
        set dst-subnet 10.0.2.0 255.255.255.252
    next
end

Refer to the exhibit. A tunnel interface is configured with IP 10.0.1.1/30 and remote-ip 10.0.1.2/30. The phase2 defines src-subnet as 10.0.1.0/30 and dst-subnet as 10.0.2.0/30. What is the most likely problem with this configuration?

⚠ Common exam trap

Test-takers frequently confuse the tunnel interface subnet with the protected local subnet, assuming the phase2 selectors should match the tunnel IPs, when in fact they must specify the actual internal networks behind the VPN gateways.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The phase2 src-subnet includes the tunnel interface IP

The phase2 src-subnet is set to 10.0.1.0/30, which includes the tunnel interface IP 10.0.1.1/30. In IPsec VPN configurations, the phase2 selector must not include the tunnel interface IP itself because the tunnel interface is used for routing encapsulated traffic; including it can cause routing loops or prevent the tunnel from establishing correctly. The correct src-subnet should be the protected internal network behind the FortiGate, not the tunnel subnet.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The phase2 src-subnet includes the tunnel interface IP

    Why this is correct

    The tunnel interface IP (10.0.1.1) is inside the src-subnet (10.0.1.0/30), which is incorrect. The src-subnet should be the local LAN subnet, not the tunnel subnet.

  • The remote gateway is set to a static IP but the peer might be dynamic

    Why it's wrong here

    The remote-gw is set to 203.0.113.1, which is a static IP; no indication of dynamic.

  • The tunnel interface is missing the 'ip' command

    Why it's wrong here

    The IP is set; DHCP is not used in this config.

  • The phase2 dst-subnet overlaps with the remote gateway

    Why it's wrong here

    The dst-subnet is 10.0.2.0/30, which is different from the remote gateway 203.0.113.1.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

Quick reference

VPN Protocol Comparison

ProtocolPortEncryptionAuthenticationUse Case
IKEv2 / IPsecUDP 500 / 4500AES-256Certificates / PSKSite-to-site & remote access
SSL / TLS VPNTCP 443TLS 1.3Certificates / MFAClientless remote access
L2TP / IPsecUDP 1701AES (IPsec)PSK / CertificatesLegacy remote access
WireGuardUDP 51820ChaCha20Public keysModern high-performance VPN
PPTPTCP 1723MPPE (weak)MS-CHAPv2Legacy — avoid in production

PPTP is considered insecure. IKEv2/IPsec and SSL VPN are the current recommended options.

About these practice questions

This NSE7 question is part of Courseiva's 940-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This NSE7 practice question is part of Courseiva's free Fortinet certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NSE7 exam.