This forum is for all security enthusiasts to discuss Fortinet's latest & evolving technologies and to connect & network with peers in the cybersecurity hemisphere. Share and learn on a broad range of topics like best practices, use cases, integrations and more. For support specific questions/resources, please visit the Support Forum or the Knowledge Base.
I'm experimenting with an L2TP / IPSec Telecommuter VPN service.  And I am having trouble telling the clients to use my internal DNS servers
config vpn ipsec phase1-interface
   edit "L2TP-TeleVPN"
     set type dynamic
     set interface "port1"
     set local-gw a.b.c.d
     set peertype any
     set net-device enable
     set proposal aes256-sha1 3des-sha1
     set dpd on-idle
     set dhgrp 14
     set psksecret ENC {deleted}
     set dpd-retryinterval 60
   next
end
config vpn ipsec phase2-interface
   edit "L2TP-TeleVPN"
     set phase1name "L2TP-TeleVPN"
     set proposal aes256-md5 3des-sha1 aes192-sha1
     set pfs disable
     set encapsulation transport-mode
     set l2tp enable
   next
end
config vpn l2tp
   set eip 10.10.10.1
   set sip 10.10.10.254
   set status enable
   set usrgrp "LDAP-VPN-User"
end
I tried adding the following:
config vpn ipsec phase1-interface
  edit "L2TP-TeleVPN"
     set type dynamic
     set interface "port1"
     set local-gw a.b.c.d
     set peertype any
     set net-device enable
    set mode-cfg enable
    set ipv4-dns-server1 10.10.45.90
    set ipv4-dns-server2 10.10.80.90
    set ipv4-dns-server3 10.10.110.90
     set proposal aes256-sha1 3des-sha1
     set dpd on-idle
     set dhgrp 14
    set assign-ip-from name
    set ipv4-netmask 255.255.255.0
    set ipv4-name "L2TP-VPN-Client-Range"
    set domain "company.com"
     set psksecret ENC {deleted}
     set dpd-retryinterval 60
   next
config firewall address
   edit "L2TP-VPN-Client-Range"
    set uuid {deleted}
    set type iprange
    set color 4
    set start-ip 10.10.10.1
    set end-ip 10.10.10.254
 next
But then clients don't connect at all ... diag debug app ike -1 shows me:
[...]
ike 0:L2TP-TeleVPN_0:222: peer has not completed Configuration Method
ike 0:L2TP-TeleVPN_0: deleting
[...]
Is it possible to instruct the Fortigate to tell the Clients what to use, in terms of DNS servers and domain name?  Or does one have to configure these individually on the Clients?
--sk
Hi @StuaKend
were you able to solve this? I’m trying to force this on native Windows clients but with same result. When I enable mode-cfg the clients won’t connect.
I have discovered, that the pushed DNS Servers are the same, as the system DNS servers, so I changed those and it worked but I would like to be able to push specific ones…
Were you able to solve this somehow using DHCP?
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 2025 Fortinet, Inc. All Rights Reserved.