Class: Dcmgr::VNet::Tasks::DropIpFromAnywhere

Inherits:
Dcmgr::VNet::Task show all
Includes:
Netfilter
Defined in:
lib/dcmgr/vnet/tasks/drop_ip_from_anywhere.rb

Overview

Drop all incoming IP layer traffic

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeDropIpFromAnywhere

Returns a new instance of DropIpFromAnywhere.



10
11
12
13
# File 'lib/dcmgr/vnet/tasks/drop_ip_from_anywhere.rb', line 10

def initialize
  super()
  self.rules << IptablesRule.new(:filter,:forward,nil,:incoming,"-j DROP")
end