Class: Dcmgr::VNet::Tasks::AcceptTcpRelatedEstablished

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

Overview

Accept related and established connections for tco

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptTcpRelatedEstablished

Returns a new instance of AcceptTcpRelatedEstablished.



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

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