Class: Dcmgr::VNet::Tasks::AcceptUdpEstablished

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

Overview

Accept established connections for any udp

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptUdpEstablished

Returns a new instance of AcceptUdpEstablished.



28
29
30
31
# File 'lib/dcmgr/vnet/tasks/accept_related_established.rb', line 28

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