Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
upsales-devops
New Contributor

Log messages when forwarding traffic

We are using our FortiGate 200F as an internal LB for some requests against a service.

What we are wondering is if it's possible to log data when forwarding traffic?

We can see successful re-routes in the Forward Traffic logs, like source and destination, but we can not determine what requests that relate to what re-route, for troubleshooting.

 

Ex.

A service sends a POST request with headers and body to an IP and port of a Virtual server with Round Robin.

External IP Address/Range10.0.10.100
External Service Port2003
Real Servers10.0.10.110:2003
10.0.10.111:2003
10.0.10.112:2003
10.0.10.113:2003
10.0.10.114:2003
10.0.10.115:2003
10.0.10.116:2003
10.0.10.117:2003

We need to be able to follow the request but are unable to determine what log relates to what request, and we get multiple requests a second.

Is there any way for FortiGate to log the data it re-routes?

3 REPLIES 3
AEK
SuperUser
SuperUser

If I understand well you are looking for packet capture, right?

https://docs.fortinet.com/document/fortigate/7.4.3/administration-guide/462154/using-the-packet-capt...

AEK
AEK
upsales-devops

That looks about right, will test it out, thank you!

ebilcari

You can also use the diagnose commands:
FW # diagnose firewall vip
realserver Load balance real servers.
virtual-server Virtual-server diagnostics.

 

and for traffic sniffing:

diagnose sniffer packet any 'tcp and port 2003' 4 0 l

- Emirjon
If you have found a solution, please like and accept it to make it easily accessible for others.
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