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

2 REPLIES 2
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....

Labels
Top Kudoed Authors