Class: Dcmgr::VNet::Tasks::AcceptAllDNS
- Inherits:
-
Dcmgr::VNet::Task
- Object
- Dcmgr::VNet::Task
- Dcmgr::VNet::Tasks::AcceptAllDNS
- Includes:
- Netfilter
- Defined in:
- lib/dcmgr/vnet/tasks/accept_all_dns.rb
Instance Attribute Summary
Attributes inherited from Dcmgr::VNet::Task
Instance Method Summary collapse
-
#initialize ⇒ AcceptAllDNS
constructor
A new instance of AcceptAllDNS.
Constructor Details
#initialize ⇒ AcceptAllDNS
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 |