Skip to main content
SVDB
Explorer
September 13, 2023
Solved

Unable to access Web Admin after port forwarding to 443 and 22

  • September 13, 2023
  • 2 replies
  • 1993 views

Hi team, 

 

I am kind of a stuck in a situation. I was accessing the fortinet dashboard board the DDNS with Letsencrypt SSL. I had setup a port forwarding to one my server through port 443 and 22. I didn't realise the ports were also used for the web admin and ssh. Now when I am trying to access the web admin and SSH the requests are being forwarded to the server. Is there anyway I can change the port or there's no other way apart from resetting the device? I do have a backup file, but not sure how to even restore that. 

 

Thanks!

Best answer by srajeswaran

I believe you tried http/telnet (or they are not enabled) and didnt work, then console access is the option. Arrange for console access and then modify the configuration (either the NAT rules or the server port for https on the system)
Changing admin port : https://community.fortinet.com/t5/FortiGate/Technical-Tip-Change-the-port-for-the-admin-access-to-the/ta-p/191269

Getting console access to system: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-connect-to-the-FortiGate-console-port/ta-p/214839

2 replies

srajeswaran
Staff
Staff
September 13, 2023

I believe you tried http/telnet (or they are not enabled) and didnt work, then console access is the option. Arrange for console access and then modify the configuration (either the NAT rules or the server port for https on the system)
Changing admin port : https://community.fortinet.com/t5/FortiGate/Technical-Tip-Change-the-port-for-the-admin-access-to-the/ta-p/191269

Getting console access to system: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-connect-to-the-FortiGate-console-port/ta-p/214839

SVDB
SVDBAuthor
Explorer
September 13, 2023

Thanks Suraj! Luckily I had remote access enabled. That helped in getting back access and removing the port forwarding. I'll also keep in mind about console access.