Class: Dcmgr::VNet::Tasks::AcceptIpToAnywhere
- Inherits:
-
Dcmgr::VNet::Task
- Object
- Dcmgr::VNet::Task
- Dcmgr::VNet::Tasks::AcceptIpToAnywhere
- Includes:
- Netfilter
- Defined in:
- lib/dcmgr/vnet/tasks/accept_ip_to_anywhere.rb
Overview
Allows any outgoing IP layer traffic from the instance to pass through
Instance Attribute Summary
Attributes inherited from Dcmgr::VNet::Task
Instance Method Summary collapse
-
#initialize ⇒ AcceptIpToAnywhere
constructor
A new instance of AcceptIpToAnywhere.
Constructor Details
#initialize ⇒ AcceptIpToAnywhere
Returns a new instance of AcceptIpToAnywhere.
10 11 12 13 |
# File 'lib/dcmgr/vnet/tasks/accept_ip_to_anywhere.rb', line 10 def initialize super() self.rules << IptablesRule.new(:filter,:forward,nil,:outgoing,"-j ACCEPT") end |