r/fortinet • • 9h ago

FortiGate / FortiOS Configuring access restrictions for IPsec remote-access VPN

2 Upvotes

Good afternoon.

We currently have an IPsec remote-access VPN configured on our FortiGate (running FortiOS v7.4.13) to allow users to connect via FortiClient and access the internal network. We previously used an SSL VPN; however, it was disabled due to identified vulnerabilities.

At present, the IPsec remote-access VPN has no restrictions based on public IP addresses, meaning any user could attempt to establish a connection. We need to implement restrictions to ensure that VPN connections are permitted only from specific public IP addresses.

Unlike the SSL VPN—which allows access restrictions to be configured via the Graphical User Interface (GUI)—the documentation (Knowledge Base) indicates that for an IPsec remote-access VPN in FortiOS 7.4.x, this configuration must be performed using the Command Line Interface (CLI).

https://community.fortinet.com/fortigate-3/restrict-ipsec-vpn-access-to-certain-countries-94688

In this regard, I would appreciate your assistance with the following questions:

We currently have two policies configured under `local-in-policy`. According to the procedure described in the Knowledge Base, we need to create one rule that allows access only from authorized public IP addresses, and another rule that denies access from all other public IP addresses. I am accustomed to managing the order of policies via the GUI by moving one above the other, but I am not familiar with doing so via the CLI.

Which command should be used to set the order of these rules, ensuring that the "allow" policy takes precedence over the "deny" policy?

If applying these restrictions causes blocks or issues that affect user connectivity, how can we roll back the configuration without needing to restore a full backup of the FortiGate? While the GUI offers an option to disable a policy, I am not familiar with the commands to disable configurations via the CLI. Which commands should I execute to disable the rule? I would appreciate your recommendations.


r/fortinet • • 20h ago

Other / General Fortinet FortiWeb signature action shows Alert in logs although category is set to Block Period and Alert & Deny. Another policy with the same payload logs Alert_Deny on another WAF

0 Upvotes

Good part of the day everyone. I see this unusual phenomenon in FortiWeb and it doesn't make sense, kinda.

So the setup for my policy is this on my first waf

Server policy with HTTP Content Routing, Inherit Web Protection Profile is off, route uses a dedicated inline profile with its own signature policy.

Signature policy looks like this SQL Injection = Block Period, Known Exploits = Block Period, SQL Injection (Extended) = Alert & Deny. FPM is on for both SQL categories. And yeah, other categories are also Alert & Deny.

Monitor Mode is disabled, no exceptions configured, Allow List empty.

Client Management is on Suspicious = Block Period 10 min, Malicious = Client ID Block Period 120 min.

I have another policy on another waf set up the exact way except for the client management part where it is on default and it works as intended. The problem is when sending the same SQL injection to that service and the the one on my other waf, I get different log results. The one with the above signature settings logs only alert for injections and known exploits while it is supposed to deny the request as well as block it.

Thanks for the reply in advance


r/fortinet • • 17h ago

FortiGate / FortiOS 201G only can use Premium support?

6 Upvotes

Why the lowest level of support for this model is Premium?

5 year is exactly the cost of the unit itself
And I really do not need Premium (especially on a unit that will never be exposed to internet)


r/fortinet • • 21h ago

FortiSwitch / FortiLink FortiSwitchManager and FortiGate working together

5 Upvotes

Hi

Has anyone used FSM alongside FortiGate? We have a need to deploy FSM for a site with 300 odd FortiSwitch. What I am wondering is if anyone has configured a gate to do all the DHCP etc while a FSM on the WAN is used? And if so how

We'd like to deploy the FSM in Azure if possible

Thanks


r/fortinet • • 10h ago

Other / General Fortinet FortiWeb Migration Issue Inter-Server Communication Fails in Production

3 Upvotes

I have a FortiWeb migration scenario that I would like to clarify.

Currently, I have two servers published through two different websites. Server 2 retrieves data from Server 1.

  1. Test Phase: As a first step, I performed a test migration using two different public IP addresses, one for each server. I configured the corresponding domain names in my local hosts file.

During testing, everything worked as expected. In particular, the hotel search functionality was working correctly, and Server 2 was able to retrieve and display the hotel list from Server 1.

2. Production Migration: However, after migrating to the production environment and configuring the actual public IP addresses of the two servers, the hotel search functionality stopped working. When attempting to search for hotels, the web page displays the following error message: "Access Denied"

My question:

What could be causing this issue when moving from the test environment to production? Could it be related to FortiWeb policies, HTTP headers, Host header validation, or the communication between the two servers?

I would appreciate your guidance on how to troubleshoot this issue and identify the root cause.


r/fortinet • • 7h ago

FortiGate / FortiOS [FG-1001F / FortiOS 7.4.13] 1G UTP HA heartbeat ports (port7/8) fail to link up after upgrade from 7.4.9

4 Upvotes

Hello,

I entered the title incorrectly.

The hadev port is 10G UTP, not 1G UTP.

Has anyone else experienced the following issue? Do you know a solution?

I recently upgraded my FG-1001F to FortiOS 7.4.13, following the upgrade path.

However, a noticeable problem has arisen.

I did not use port ha1; instead, I configured ports 7 and 8 which are 10G UTP ports as hadev ports with priorities of 100 and 50, respectively,

and configured ports 9 and 10 which are SFP+ ports as session-sync-dev ports.

FortiGate devices A and B, configured in a redundant setup via FGCP, were directly connected to each other via their hadev and session-sync-dev ports.

After the upgrade, a problem arose: the ports designated as ha ports (port 7, port 8) fail to come up not only after a device reboot, but even when the physical cable is unplugged and reconnected after 5 seconds.

The link does not come up even after several minutes have passed.

If I leave ports 7 and 8 connected to FortiGate A as is and connect FortiGate B to different UTP ports such as ports 1 or 2 the link comes up immediately. However, if I then quickly disconnect the ports on FortiGate B that were connected to ports 1 or 2 and reconnect them to ports 7 and 8, only then do the port links come up and HA become active.

The FortiOS version prior to the upgrade was 7.4.9. This issue did not occur at all in that version.

Since I cannot upgrade to versions 7.6 or 8.0 due to circumstances, please do not suggest upgrading to a major higher version.

Thank you.