Sha256: 5a35e45470b46eeb312f23a90eca6df9bb260602ea6e88e904c31c2a08c4d4d4
Contents?: true
Size: 580 Bytes
Versions: 2
Compression:
Stored size: 580 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr module VNet module Tasks class AcceptARPFromGateway < Task include Dcmgr::VNet::Netfilter attr_accessor :gw_ip def initialize(gw_ip,enable_logging = false,log_prefix = nil) super() self.gw_ip = gw_ip # Allow broadcast from the gateway self.rules << EbtablesRule.new(:filter,:forward,:arp,:incoming,"--protocol arp --arp-ip-src=#{self.gw_ip} #{EbtablesRule.log_arp(log_prefix) if enable_logging} -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_arp_from_gateway.rb |
wakame-vdc-dcmgr-11.12.0 | lib/dcmgr/vnet/tasks/accept_arp_from_gateway.rb |