-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to concatenate -srcip and -dstip in the Get-FGTLogTraffic function. #231
Comments
Actually parameter is exclusif... (sorry) but patch are welcome for enhance this support for define an network can you try like the GUI to use -srcip "10.0.0.1-10.0.0.254" ? |
Since the parameter is exclusive the only way is to filter at a later stage. I confirm that -srcip 8.8.4.4-8.8.8.8 is working. Thanks for your support. |
Ok strange because after a check, the GUI use different filter (srcip >= 8.8.4.4 and srcip <= 8.8.8.8) i will look to add $customfilter parameter to set your own filter |
WORKING Get-FGTLogTraffic -vdom FW-ASL8 -type fortianalyzer -subtype forward -dstip 8.8.8.8 -rows 10 -since 1h | select srcip, dstip, dstport, proto, date, time, action | Format-Table srcip dstip dstport proto date time action 172.23.100.31 8.8.8.8 53 17 2023-12-11 09:36:27 accept WORKING Get-FGTLogTraffic -vdom FW-ASL8 -type fortianalyzer -subtype forward -dstip 8.8.4.4-8.8.8.8 -rows 10 -since 1h | select srcip, dstip, dstport, proto, date, time, action | Format-Table srcip dstip dstport proto date time action 192.168.11.15 8.8.8.8 1 2023-12-11 09:37:22 accept NOT WORKING (descending interval) |
on the example you see only 8.8.8.8, you get also 8.8.4.4 ? |
Yes. Get-FGTLogTraffic -vdom FW-ASL8 -type fortianalyzer -subtype forward -dstip 8.8.4.4-8.8.8.8 -rows 10 -since 1h | select srcip, dstip, dstport, proto, date, time, action | Format-Table srcip dstip dstport proto date time action 172.23.100.21 8.8.8.8 53 17 2023-12-11 16:30:57 accept |
working command:
Get-FGTLogTraffic -vdom FW-ASL8 -type fortianalyzer -subtype forward -dstip 8.8.8.8 -rows 10 -since 1h | select srcip, dstip, dstport, proto, date, time, action | Format-Table
srcip dstip dstport proto date time action
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:41:56 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:41:49 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:41:40 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:41:17 accept
172.23.100.31 8.8.8.8 53 17 2023-12-04 09:40:58 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:40:40 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:40:40 dns
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:40:28 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:39:35 accept
172.23.100.21 8.8.8.8 53 17 2023-12-04 09:39:23 accept
not working command:
Get-FGTLogTraffic -vdom FW-ASL8 -type fortianalyzer -subtype forward -srcip 172.23.100.21 -dstip 8.8.8.8 -rows 10 -since 1h | select srcip, dstip, dstport, proto, date, time, action | Format-Table
Get-FGTLogTraffic: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.
Am I doing something wrong or is this how it's supposed to work?
In any case, is it possible to concatenate the source address and destination address on the Get-FGTLogTraffic function?
Is it possible to define networks? (e.g. 10.0.0.1/24)
Thank you in advance for your valuable support.
The text was updated successfully, but these errors were encountered: