Description
This article describes DHCP IP address reservation with Dial-up IPsec VPN.
Scope
FortiGate.
Solution
GUI configuration.
Assign IP address to the interface:
IP: 172.16.1.100
Remote IP: 172.16.1.100
Enable DHCP Server
Address range: 172.16.1.1- 172.16.1.20
Net mask: 255.255.255.0
IP address Reservation
Add a MAC Reservation + Access Control entry:
MAC: <network card MAC address from you are connecting to the VPN>
IP: <IP address to reserve>
Action: Reserve IP
Type: IPsec
In latest version, disable the same only via the CLI is necessary.
config vpn ipsec phase2-interface
edit "FC1
set phase1name "FC1"
set comments "VPN: FC1 (Created by VPN wizard)"
set dhcp-ipsec enable
next
end
config system dhcp server
edit 3
set dns-service default
set default-gateway 172.16.1.100
set netmask 255.255.255.0
set interface "FC1"
# config ip-range
edit 1
set start-ip 172.16.1.1
set end-ip 172.16.1.20
next
end
set timezone-option default
set server-type ipsec
# config reserved-address
edit 1
set ip 172.16.1.1
set mac 11:22:33:44:55:66
next
end
next
end
config vpn ipsec phase1-interface
edit FC1
set mode-cfg disable
end
config vpn ipsec phase2-interface
edit "FC1"
set phase1name "FC1"
set dhcp-ipsec enable
next
end
Verification.
Post that if the user is connecting via the IPSEC VPN reserved IP address will be released whenever connecting.
Note:
When mode-cfg is disabled, the split tunneling will not work since 'ipv4-split-include' would be unavailable.
Related articles:
Technical Note: DHCP IP address reservation with Dial up IPsec VPN
Technical Tip: DHCP IP address configuration with Dial up IPsec VPN under VPN tunnel
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.