How do I set up fail2ban to secure Ubuntu server?

How do I set up fail2ban to secure Ubuntu server? I recently install the latest fail2ban (Version 0.9.1 release) to secure Ubuntu X64 server, I have whitelist the administrator Ip range but am sure it may not be secure. Is it possible to set up fail2ban to ignore dynamic IP other than the default ‘ignoreip’? If not, what other secure option can I use to achieve this goal?
