Sha256: 8400735c1e330b5684075d081df547bcae4d0274c036d6e618ac8e2cc8254244
Contents?: true
Size: 863 Bytes
Versions: 2
Compression:
Stored size: 863 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr module VNet module Tasks # Drops all ARP packet forwarding class DropArpForwarding < Task include Dcmgr::VNet::Netfilter attr_reader :enable_logging attr_reader :log_prefix def initialize(enable_logging,log_prefix) super() @enable_logging = enable_logging @log_prefix = log_prefix # Drop forwarding to other instances #self.rules << EbtablesRule.new(:filter,:forward,:arp,:incoming,"--log-level 4 --log-ip --log-arp --log-prefix 'D d_#{self.log_prefix}_arp:' -j CONTINUE") if self.enable_logging self.rules << EbtablesRule.new(:filter,:forward,:arp,:incoming,"#{EbtablesRule.log_arp(self.log_prefix) if self.enable_logging} -j DROP") 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/drop_arp_forwarding.rb |
wakame-vdc-dcmgr-11.12.0 | lib/dcmgr/vnet/tasks/drop_arp_forwarding.rb |