Class: Dcmgr::VNet::Tasks::DebugIptables

Inherits:
Dcmgr::VNet::Task show all
Includes:
Netfilter
Defined in:
lib/dcmgr/vnet/tasks/debug_iptables.rb

Overview

via backreference.org/2010/06/11/iptables-debugging/ To debug ipv4 packets. $ sudo tail -F /var/log/kern.log | grep TRACE:

Instance Attribute Summary

Attributes inherited from Dcmgr::VNet::Task

#rules

Instance Method Summary collapse

Constructor Details

#initializeDebugIptables

Returns a new instance of DebugIptables.



12
13
14
15
16
# File 'lib/dcmgr/vnet/tasks/debug_iptables.rb', line 12

def initialize
  super()
  self.rules << IptablesRule.new(:raw,:output,:icmp,:outgoing,"-p icmp -j TRACE")
  self.rules << IptablesRule.new(:raw,:prerouting,:icmp,:incoming,"-p icmp -j TRACE")
end