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