Class: Dcmgr::VNet::Tasks::AcceptAllDNS

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

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeAcceptAllDNS

Returns a new instance of AcceptAllDNS.



9
10
11
12
13
14
# File 'lib/dcmgr/vnet/tasks/accept_all_dns.rb', line 9

def initialize()
  super()
  # Allow DNS traffic to take place
  self.rules << IptablesRule.new(:filter,:forward,:udp,:outgoing,"-p udp --dport 53 -j ACCEPT")
  self.rules << IptablesRule.new(:filter,:forward,:udp,:incoming,"-p udp --dport 53 -j ACCEPT")
end