HI all,
I'm having an issue with port forwarding using a dynamic public IP, I have gone through the Fortinet cookbook and setup everything as follows:
But I think I am missing something somewhere as I cannot get it to forward port 37777 and access the device externally, I am currently using the Fortiddns services for updating my dynamic public IP.
Thanks in advance
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
The problem is probably in your custom service. Source port range should be 1-65535, destination should be 37777-37778. You haven't posted that part, so this is an assumption.
Scratch that. I now saw at the bottom you did provide that piece. Check that the cameras work as expected from the inside. After that, check to see if the camera server can get to the Internet. The problem seems to be traversing the firewall.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
I agree with Bob - the VIP looks right. If you have external access to the fgt's GUI via the DDNS name then I say that part is working.
If you have not done this already, I suggest adding the bytes (or count) column to the IPv4 policy screen and watch the byte count on the firewall policy for the port forward to see if it increases as you attempt to access the camera. If the count increases but have no access then I say the problem may be on the camera side going out.
Also is the public IP directly assigned to the fgt or is that just the public IP assigned to a gateway device that the fgt is connected to? If the latter then perhaps you may also need to set up port forwarding or opening up ports on the gateway device.
NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
The first thing is that you're trying to map a port range (37777-37778) to a single destination port (37777). Put in the "map to port" area as "37777-37778" which should help.
Following that, I would run the following:
[ol]At any point you come across a device where either (a) the packet doesn't arrive correctly or (b) doesn't leave correctly then investigate that device. When I say "correctly" it may arrive but have the wrong port, it may leave out the wrong interface, have the wrong NAT address or whatever.
As long as you follow the packet, you'll find out where your problems are. :)
I hope this helps,
Sean (Gr@ve_Rose)
Site: https://tcpdump101.com
Twitter: https://twitter.com/Grave_Rose
Reddit: https://reddit.com/r/tcpdump101
Grave_Rose wrote:The first thing is that you're trying to map a port range (37777-37778) to a single destination port (37777). Put in the "map to port" area as "37777-37778" which should help.
The firewall filled in the second port in the range, grayed out there in the screen shot.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
It's almost three in the afternoon and I still need more coffee. :) Thanks for pointing that out, @rwpatterson
Site: https://tcpdump101.com
Twitter: https://twitter.com/Grave_Rose
Reddit: https://reddit.com/r/tcpdump101
Thanks guys,
yes I can access the firewall externally via the ddns as I have setup the gateway device to forward all external traffic to the IP address it has assigned to my firewall.
I will take the steps provided to me and work through them today, and revert back to you guys with my findings.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
443 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.