Class: Dcmgr::VNet::Tasks::AcceptRelatedEstablished

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

Overview

Accept related and established connaction for any protocol

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptRelatedEstablished

Returns a new instance of AcceptRelatedEstablished.



37
38
39
40
# File 'lib/dcmgr/vnet/tasks/accept_related_established.rb', line 37

def initialize
  super()
  self.rules << IptablesRule.new(:filter,:forward,nil,:incoming,"-m state --state RELATED,ESTABLISHED -j ACCEPT")
end