Class: Dcmgr::VNet::Tasks::DebugIptables
- Inherits:
-
Dcmgr::VNet::Task
- Object
- Dcmgr::VNet::Task
- Dcmgr::VNet::Tasks::DebugIptables
- 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
Instance Method Summary collapse
-
#initialize ⇒ DebugIptables
constructor
A new instance of DebugIptables.
Constructor Details
#initialize ⇒ DebugIptables
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 |