Skip to main content
kiclee
Explorer
Sep 2, 2022 6:47 AM UTC
Solved

Can I write comments in txt file for Threat Feed?

Hello,

 

I made a txt file for Threat Feed as below

kiclee_0-1662100978637.png

I wrote '#" for comment

Paloalto can ignore some characters like '#' and recognize comment.

Howerver Fortinet can't ignore "#" and then recognize invalid.

Can you let me know how to use comment?

 

amouawad
amouawadAnswer
Staff
Sep 2, 2022 11:01 AM UTC

If this is a threat feed that you're making you could redesign it a little by placing the comments above the IP address. For example:

 

#blocked IP 1

1.1.1.1

#blocked IP 2

2.2.2.2

 

The FortiGate will parse the two IP addresses and ignore the lines with #.

5 replies

Esteemed Contributor III
Sep 2, 2022 7:03 AM UTC

Dear Kiclee.

I understand that you are using an external threat feed,
So may I know whether "View entries" is not showing the "#" ?

kiclee
kicleeAuthor
Explorer
Sep 2, 2022 7:30 AM UTC

Dear akumarr,

No, "view entires" is showing "#" as below

kiclee_0-1662103812945.png

 

Shilpa1
Staff
Staff
Sep 2, 2022 7:47 AM UTC

Hello kiclee,

 


Please be advised that for IP addresses, only the below formats listed under Example, are considered valid.

 

IP Address

The file contains one IP/IP range/subnet per line. It is available as an External IP Block List in DNS Filter profiles, and as a Source/Destination in IPv4, IPv6, and proxy policies.

Example:

192.168.2.100 172.200.1.4/16 172.16.1.2/24 172.16.8.1-172.16.8.100 2001:0db8::eade:27ff:fe04:9a01/120 2001:0db8::eade:27ff:fe04:aa01-2001:0db8::eade:27ff:fe04:ab01

You may also refer the below document link for more information:
https://docs.fortinet.com/document/fortigate/6.2.0/cookbook/9463/threat-feeds

Regards,

Shilpa C.P

amouawad
Staff
amouawadAnswer
Staff
Sep 2, 2022 11:01 AM UTC

If this is a threat feed that you're making you could redesign it a little by placing the comments above the IP address. For example:

 

#blocked IP 1

1.1.1.1

#blocked IP 2

2.2.2.2

 

The FortiGate will parse the two IP addresses and ignore the lines with #.

kiclee
kicleeAuthor
Explorer
Sep 3, 2022 6:45 AM UTC

Thank you very much, amouawad :)

It is so useful for me 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT