Sha256: 886f9febf6019d65b0b18415b4977883b297d7e9aba13dec3edc6510145e783b
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr module VNet module Tasks # Explicitely allows IP traffic between the gateway and the instances class AcceptIpFromGateway < Task include Dcmgr::VNet::Netfilter attr_reader :gateway_ip def initialize(gateway_ip) super() @gateway_ip = gateway_ip self.rules << IptablesRule.new(:filter,:forward,nil,:incoming,"-s #{gateway_ip} -j ACCEPT") end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-agents-11.12.0 | lib/dcmgr/vnet/tasks/accept_ip_from_gateway.rb |
wakame-vdc-dcmgr-11.12.0 | lib/dcmgr/vnet/tasks/accept_ip_from_gateway.rb |