Class: Dcmgr::VNet::Tasks::DropIpFromAnywhere
- Inherits:
-
Dcmgr::VNet::Task
- Object
- Dcmgr::VNet::Task
- Dcmgr::VNet::Tasks::DropIpFromAnywhere
- 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
Instance Method Summary collapse
-
#initialize ⇒ DropIpFromAnywhere
constructor
A new instance of DropIpFromAnywhere.
Constructor Details
#initialize ⇒ DropIpFromAnywhere
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 |