Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
mrc
New Contributor

DNS Virtual Server load balancing to real servers while preserving client IP

I have 4 real DNS servers behind a common Virtual Server using UDP forwarding on port 53 on our FortiGate that has been working for several years. I now have the requirement for the client IP to be preserved for the DNS servers so they can apply their own policies to the client traffic based on source IP. It is currently being replaced by the FortiGate's IP.

 

Any suggestions on how to achieve this?

 

Cheers - Mike

 

SOLVED: it was easier than NAT(which was not on) it was the flow/proxy setting - oops

1 Solution
ezhupa
Staff
Staff

Hello,

Try disabling NAT on the FW policy first. 

Or in the Virtual Server configuration you should have an option in the GUI. 
"Preserve client IP". By default it is disabled. Toggle it and enable. 
https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-Preserving-the-original-source-IP-wh....

View solution in original post

3 REPLIES 3
AEK
SuperUser
SuperUser

Are you doing NAT in the related firewall policy?

You should remove it.

AEK
AEK
ezhupa
Staff
Staff

Hello,

Try disabling NAT on the FW policy first. 

Or in the Virtual Server configuration you should have an option in the GUI. 
"Preserve client IP". By default it is disabled. Toggle it and enable. 
https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-Preserving-the-original-source-IP-wh....

jotaherre_94
New Contributor II

Hello friend. The "preserve client IP" function is not available when using type for UDP and DNS port 53. Not even CLI is available. I need this in my environment. What would be the way out?

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors