elastix
Information
Community
Developers
What We Sell
Forums
Addons
Download
Information
Community
Social Networks
For Developers
Manufacturer Support
Appliances
Training & Certification

fail2ban default config

Security Forum

fail2ban default config

Postby Sadie » Sun Feb 20, 2011 5:24 am

Hello guys,

Im really novice to fail2ban. I came across this config file please help what needs to edit in the default values. Or can I just leave it be and fail2ban will also function?

# /etc/fail2ban/jail.conf

[DEFAULT]
ignoreip = 127.0.0.1 192.168.0.0/16 10.0.0.0/8 172.16.0.0/16

[asterisk-iptables]
enabled = true
filter = asterisk
action = iptables-allports[name=ASTERISK, protocol=all]
sendmail-whois[name=ASTERISK, dest=you@company.com, sender=fail2ban@company.com]
logpath = /var/log/asterisk/fail2ban
maxretry = 5
bantime = 600


Thanks,

Sadie
Sadie
Fresh Boarder
Fresh Boarder
 
Posts: 24
Joined: Tue Mar 16, 2010 5:38 am
Karma: 0

Re:fail2ban default config

Postby Sadie » Sun Feb 20, 2011 5:34 am

should i replace this dest=you@company.com, sender=fail2ban@company.com with an email from my domain? sorry, really dont know.. :(
Sadie
Fresh Boarder
Fresh Boarder
 
Posts: 24
Joined: Tue Mar 16, 2010 5:38 am
Karma: 0

Re:fail2ban default config

Postby Sadie » Sun Feb 20, 2011 6:07 am

Also when I executed: iptables -L -v
i only see this

Chain INPUT (policy ACCEPT 21274 packets, 942K bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 22376 packets, 1012K bytes)
pkts bytes target prot opt in out source destination

I followed the instruction by the letter. :( please help me.

Thanks,

Sadie
Sadie
Fresh Boarder
Fresh Boarder
 
Posts: 24
Joined: Tue Mar 16, 2010 5:38 am
Karma: 0

Re:fail2ban default config

Postby Amphibian » Tue Feb 22, 2011 1:14 am

Sadie,

Not sure what Ver of Elastix you are using, but this may help in your endevur to get it workin:

http://www.sunshinenetworks.com.au/how- ... ix-16.html

look this over and research any additional info at the same site. There are some post on here under the security portion of the forum they should assist you also.

Amphibian
"I may not be the sharpest tool in the shed, but, I'm not the only dull tool in the shed either.
User avatar
Amphibian
Expert Boarder
Expert Boarder
 
Posts: 778
Joined: Tue Sep 08, 2009 6:04 am
Location: Texas my friend, Texas
Karma: 30


Return to Security

Who is online

Users browsing this forum: No registered users and 1 guest