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