Skip to content
Discussion options

You must be logged in to vote

Implemented by 9dc3559.


Added in the next version: the rule control command.

FortFirewall.exe -c rule set-text <rule-name> <file-path>
FortFirewall.exe -c rule get-text <rule-name> <file-path>
FortFirewall.exe -c rule on|off|report <rule-name>

Create a global blocking rule in Rules once (e.g. "Block Slowloris"), then your script keeps its text in a file and applies it:

dir(in):proto(tcp):local_port(80):{
  192.168.0.50
  192.168.0.51
}
FortFirewall.exe -c rule set-text "Block Slowloris" blocked.txt

The text is checked like in the rule dialog; on an error the rule isn't changed. For a temporary block just remove the IP from the file later and run set-text again (or -c rule off "Block S…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mlibre2

This comment has been hidden.

Answer selected by mlibre2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants