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

DynDNS Issue

Hello, I have a Customer with a Fortigate 60B Firewall. He is using SSL-VPN. Clients only allowed to login from some ip-adresses. To allow some dynamic ips wo created a dyndns host entry and allowed this fqdn in fortigate firewall to connect via vpn. But it only works, if we usw ip in firewall rule instead of dyndns name. Die Fortigate itself is allow to do dns requests. And if i run nslookup from a box behind firewall and ask firewall for ip of dyndns hostname, then it will resolve the right ip. Does anyloby know any help? Thank you!
10 REPLIES 10
rwpatterson
Valued Contributor III

Check the DNS settings on the FGT itself. From the command line, try " exec ping dyndnsname.dyndns.com" and see it if resolves. If that does not work there' s your problem. Post back with more information.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Not applicable

Hello Bob, thanks for your reply! For ping from CLI, I get a normal ping reply (4x) with correct DNS resolution. Even changes of dyndns IP were detected after 2 minutes. But Login to SSL-VPN HTML-Page say " Error:Permission denied" to me... If you need more information, which information do you need?
rwpatterson
Valued Contributor III

ORIGINAL: pdcemulator But Login to SSL-VPN HTML-Page say " Error:Permission denied" to me...
If you are getting to this page, then dynamic DNS is working. You are at the firewall... You need to figure out why the SSL VPN is not accepting your login credentials.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
emnoc
Esteemed Contributor III

What fortiOS are your running? Also have you tried any diag debug flow to see what the unit is reporting. ? That would be my 1st to options, that I would try.

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Not applicable

Also have you tried any diag debug flow to see what the unit is reporting.?
How I can do this? I only see in log from web-gui an error message, but no futher information about the error. OS ist 4.x, dont have the exact version here. I post it asap...
emnoc
Esteemed Contributor III

login into the CLI and look at the diag commands. You might want to review the KB for fortigate on this. Go to KB and do a search on diag debug flow

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Yngve0
New Contributor II

I have an similar issue with an IPSEC-VPN: - The DDNS-entry is updated correctly - Ping <ddns-host> from a PC returns the correct IP-address - Ping <ddns-host> from the actual FG returns the correct IP-address - User, monitpr, ipsec show the previous ip and try to etablish a tunnel against this IP which of course fails Any one with a good solution here? If change the hostname on the tunnel to something and the reenter the correct ddns-host and synchronize the PSK, the tunnel is re-etablished with correct ip. best regards Y
rwpatterson
Valued Contributor III

ORIGINAL: Yngve Øines If change the hostname on the tunnel to something and the reenter the correct ddns-host and synchronize the PSK, the tunnel is re-etablished with correct ip.
One of my tunnels still has this issue (and I use the same trick). 4.0.3 on the static end, v3 MR7 p5 on the remote. Only happens when I take down the remote (dynamic) end before the rekeying takes place. Recently upped to MR7P7. Let' s see how this goes...

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Yngve0
New Contributor II

One of my tunnels still has this issue (and I use the same trick). 4.0.3 on the static end, v3 MR7 p5 on the remote. Only happens when I take down the remote (dynamic) end before the rekeying takes place. Recently upped to MR7P7. Let' s see how this goes...
I can hardly believe that my issue is related to the firmware on remote end (Dynamic), since name resultion, even done from CLI on static FG, returns correct IP but ipsec-monitor show an old and expired IP.
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