root/honeyclient/tags/exp/PRE-kindlund-simpler_agent/bin/fw/startFWListener.pl

Revision 1062, 1.9 kB (checked in by xkovah, 1 year ago)

adding the fw bin dir back in

  • Property svn:executable set to *
Line 
1 #!/usr/bin/perl -w
2
3 ##################################################################################################
4 # Created on:   February 27th, 2006
5 # Package:      HoneyClient::Manager::Firewall::FW
6 # File:         startHCFW.pl
7 # Description:  A perl script to start the honeyclient firewall listener.  It initially loads the default
8 #               firewall ruleset and listens for remote calls from the overall manager.
9 # @author jdurick
10 ##################################################################################################
11
12 use strict;
13 use warnings;
14 use Test::More 'no_plan';
15 use Data::Dumper;
16 my $VERSION = 0.2;
17
18 # Make sure HoneyClient::Util::Config loads properly
19 BEGIN { use_ok("HoneyClient::Util::Config"), or diag("Can't load HoneyClient::Util::Config package. Check to make sure the package library is correctly listed within the path."); }
20 require_ok('HoneyClient::Util::Config');
21 use HoneyClient::Util::Config qw(getVar);
22
23 # Make sure IPTables::IPv4 loads
24 BEGIN { use_ok("IPTables::IPv4"), or diag("Can't load IPTables::IPv4 package. Check to make sure the package library is correctly listed within the path."); }
25 require_ok('IPTables::IPv4');
26 use IPTables::IPv4;
27
28 # Make sure HoneyClient::Manager::Firewall::FW can load
29 BEGIN { use_ok("HoneyClient::Manager::FW"), or diag("Can't load HoneyClient::Manager::FW package. Check to make sure the package library is correctly listed within the path."); }
30 require_ok('HoneyClient::Manager::FW');
31 use HoneyClient::Manager::FW;
32
33 # Make sure HoneyClient::Util::SOAP loads properly
34 BEGIN { use_ok("HoneyClient::Util::SOAP"), or diag("Can't load HoneyClient::Util::SOAP packa
35 ge. Check to make sure the package library is correctly listed within the path."); }
36 require_ok('HoneyClient::Util::SOAP');
37
38 package HoneyClient::Manager::FW;
39 use HoneyClient::Util::SOAP qw(getClientHandle getServerHandle);
40 my $daemon = getServerHandle();
41 $daemon->handle;
Note: See TracBrowser for help on using the browser.