Changeset 402
- Timestamp:
- 05/29/07 16:58:50 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Manager.pm
r401 r402 561 561 $vmMAC = $som->result(); 562 562 563 563 564 # Figure out when the Agent on the VM is alive and well. 564 565 $ret = undef; 566 my $logMsgPrinted = 0; 565 567 while (!$ret) { 566 568 sleep (3); … … 573 575 574 576 if (defined($vmIP)) { 577 if (!$logMsgPrinted) { 578 $LOG->info("Created clone VM (" . $vmName . ") using IP (" . $vmIP . ") and MAC (" . $vmMAC . ")."); 579 $logMsgPrinted = 1; 580 } 575 581 576 582 # Try contacting the Agent; ignore any faults. … … 601 607 } 602 608 603 $LOG->info("Created clone '" . $vmName . "' using IP (" . $vmIP . ") and MAC (" . $vmMAC . ").");604 605 609 # Build our VM's connection table. 606 610 # Note: We assume our VM has a single MAC address … … 620 624 621 625 # Initialize the firewall. 622 #$stubFW->fwInit();626 $stubFW->fwInit(); 623 627 624 628 # Add new chain, per cloned VM. 625 #$stubFW->addChain($vmStateTable);629 $stubFW->addChain($vmStateTable); 626 630 627 631 sleep (2); … … 711 715 # Delete the old firewall rules, based upon existing 712 716 # targets. 713 #$stubFW->deleteRules($vmStateTable);717 $stubFW->deleteRules($vmStateTable); 714 718 715 719 # Get the new targets from the Agent. … … 723 727 724 728 # Add the new targets from the Agent. 725 #$stubFW->addRules($vmStateTable);729 $stubFW->addRules($vmStateTable); 726 730 727 731 print "Calling run()...\n"; … … 738 742 # the daemon, in which case, we indefinately try to reset the 739 743 # firewall accordingly. 740 #$stubFW->fwInit();741 #$stubFW->addChain($vmStateTable);742 #$stubFW->addRules($vmStateTable);744 $stubFW->fwInit(); 745 $stubFW->addChain($vmStateTable); 746 $stubFW->addRules($vmStateTable); 743 747 }; 744 748 if (!$@) {
