Skip to main content
ekravchenko
Explorer
October 5, 2023
Solved

Remove default route or increase its metric from DHCP server

  • October 5, 2023
  • 3 replies
  • 3234 views

My setup is one FortiGate 80F with latest firmware (7.4.1) and lots of services and hosts behind it. I have multiple VLANs that i use for VPN clients. VPN server is separate host and it assigns VLAN to the client. FG acts as DHCP server for VPN clients. Also i use DHCP option 121 to push routes to internal resources depending on VLAN. What i want to achieve is to remove default route from DHCP server or make its metric higher so vpn clients will have only option 121 pushed routes.
Now i`m using blackhole route but it doesn`t fullfill my requirements as i still have clients with problems. I use softether as VPN server and clients are windows, linux, mac users using softether protocol and openvpn protocol.
Any ideas?

Best answer by AEK

If I understand well your concern, a solution would be to configure FG as DHCP relay, and IP assignment will be done by VPN server.

3 replies

AEK
SuperUser
AEKAnswer
SuperUser
October 5, 2023

If I understand well your concern, a solution would be to configure FG as DHCP relay, and IP assignment will be done by VPN server.

AEK
ekravchenko
Explorer
October 9, 2023

I think i will proceed with VPN server DHCP server. Thank you

spoojary
Staff
Staff
October 5, 2023

Absolutely, making the FortiGate (FG) act as a DHCP relay agent and letting the VPN server handle the IP assignment directly can provide greater control over the DHCP options distributed to clients. By doing so, you can configure DHCP options, including Option 121, precisely as desired on the VPN server without the FortiGate potentially introducing any unwanted options.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!