warri
Guru
- Joined
- Jun 6, 2011
- Messages
- 1,193
Hello,
I was wondering how to enable the Banengine from mod_ban.
In the default proftpd.conf it is disabled:
But even if I add a new IfModule section in the auxiliary parameters, it obviously won't overwrite those settings.
I tried to add this lines to the auxiliary parameters section:
So in the GUI there seems to be no way to enable the banengine, can I configure it somewhere else?
[edit]
I managed to adjust my rc.d/ix-proftpd to enable the banengine, create a ban.tab and a ban.log and add the correct rules.
But proftpd isn't banning at all. So, is the module not included in FreeNAS 8 so far or did I miss anything else?
I was wondering how to enable the Banengine from mod_ban.
In the default proftpd.conf it is disabled:
Code:
<IfModule mod_ban.c> BanEngine off BanControlsACLs all allow group wheel BanLog /var/log/proftpd/ban.log BanMessage Host %a has been banned # -m "mod_ban/rule" # -v "concat(' BanOnEvent ',event,' ',occurrence,'/',timeinterval,' ',expire)" -n # -b BanTable /var/run/proftpd/ban.tab </IfModule>
But even if I add a new IfModule section in the auxiliary parameters, it obviously won't overwrite those settings.
I tried to add this lines to the auxiliary parameters section:
Code:
<IfModule mod_ban.c> BanEngine on BanLog /var/log/proftpd/ban.log BanTable /var/data//proftpd/ban.tab BanOnEvent MaxLoginAttempts 2/00:10:00 01:00:00 BanOnEvent ClientConnectRate 2/00:01:00 04:00:00 "Stop connecting frequently" </IfModule>
So in the GUI there seems to be no way to enable the banengine, can I configure it somewhere else?
[edit]
I managed to adjust my rc.d/ix-proftpd to enable the banengine, create a ban.tab and a ban.log and add the correct rules.
But proftpd isn't banning at all. So, is the module not included in FreeNAS 8 so far or did I miss anything else?