Hello,
Reading 'pf' documentation and a few tutorials online I came up with a few simple rules to block ssh-bruteforce attacks. Works fine now but I'd like to be able to 'save' them.
From the manual I read:
* persist - causes the kernel to keep the table in memory even when no rules
refer to it. Without this attribute, the kernel will automatically remove
the table when the last rule referencing it is flushed.
This is related to memory and kernel. What I'd like to do is save the banned ip's on a file and on bood load this file. To load this file into the table I came up with
[CMD="table <sshbf> persist "/etc/ssh/pf_banned_ips""]# < this[/CMD] but in order to 'save' the newly added ips to 'pf_banned_ips' do I have to write a script on my own or can pf somehow handle this?
Thanks
Reading 'pf' documentation and a few tutorials online I came up with a few simple rules to block ssh-bruteforce attacks. Works fine now but I'd like to be able to 'save' them.
From the manual I read:
* persist - causes the kernel to keep the table in memory even when no rules
refer to it. Without this attribute, the kernel will automatically remove
the table when the last rule referencing it is flushed.
This is related to memory and kernel. What I'd like to do is save the banned ip's on a file and on bood load this file. To load this file into the table I came up with
[CMD="table <sshbf> persist "/etc/ssh/pf_banned_ips""]# < this[/CMD] but in order to 'save' the newly added ips to 'pf_banned_ips' do I have to write a script on my own or can pf somehow handle this?
Thanks