Class: Dcmgr::VNet::Tasks::AcceptIpToAnywhere

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

Overview

Allows any outgoing IP layer traffic from the instance to pass through

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptIpToAnywhere

Returns a new instance of AcceptIpToAnywhere.



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

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