Configuring the DNS translation on your FortiGate unit- Configure the DNS helper using the CLI. Enter the following commands:
config sys session-helper edit 15 set name dns_udp set port 53 set protocol 17 next edit 16 set name dns_tcp set port 53 set protocol 6 next end - Configure one virtual IP for the DNS.
- Configure one virtual IP for each internal server.
- Configure a DNS translation rule for each internal server:
config firewall dnstranslation edit 1 set dst'external address of the FortiGate' set netmask 255.255.255.255 set src 'internal address of the server' next end
Configuration Example
Step 1: Session-Helperconfig sys session-helper edit 15 set name dns_udp set port 53 set protocol 17 next edit 16 set name dns_tcp set port 53 set protocol 6 next end Step 2: VIP for the DNS serverexternal IP 172.31.224.203 port 53 internal IP 10.100.0.3 port 53 Session 3: VIP for the internal web serverexternal IP 172.31.224.203 port 80 internal IP 10.100.0.23 port 80
Step 4: DNS translation rule for internal web serverconfig firewall dsntranslation edit 1 set dst 172.31.224.203 set netmask 255.255.255.255 set src 10.100.0.23 next end |