Skip to main content
Dante_De_Luca_FTNT
Staff
Staff
April 1, 2015

Configuring DNS servers per SSL VPN Portal

  • April 16, 2026 at 12:27 PM
  • 0 replies
  • 15811 views
Description
To configure DNS servers differently for different user groups (or tunnels), configure it uniquely for each SSL VPN portal and then assign user groups a unique portal.

In FortiOS 5.0:

config vpn ssl web portal
edit <portal>
            config widget
                edit 1
                    set name "Tunnel Mode"
                    set type tunnel
...
                    set dns-server1<ip4_addr>
                    set dns-server2 <ip4_addr>

In FortiOS 5.2:

config vpn ssl web portal
edit <portal>
       set dns-server1 <ip4_addr>
       set dns-server2 <ip4_addr>
end

If set, the DNS server settings at the portal level should override those at the global level.
If all SSL VPN portals have DNS settings configured, you can remove the DNS settings at the system level.

config vpn ssl settings
unset dns-server1
unset dns-server2
end
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
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