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