Class: Dcmgr::VNet::Tasks::AcceptIcmpRelatedEstablished

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 icmp

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptIcmpRelatedEstablished

Returns a new instance of AcceptIcmpRelatedEstablished.



19
20
21
22
# File 'lib/dcmgr/vnet/tasks/accept_related_established.rb', line 19

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