diff --git a/lib/iptable.rb b/lib/iptable.rb index 54fba393d..b40e71055 100644 --- a/lib/iptable.rb +++ b/lib/iptable.rb @@ -8,6 +8,8 @@ module Iptable end rescue Errno::ENOENT => e logger.error "ERROR: cannot open #{counter_proc}: #{e}" + rescue Errno::EACCES => e + logger.error "ERROR: no permission #{counter_proc}: #{e}" rescue IOError => e logger.error "ERROR: cannot write #{ip} to #{counter_proc}: #{e}" end