Honeyd
Honeyd
Honeyd
a. Libevent
b. Libdnet
d. Libpcre
An arpd ,also called farpd ,daemon can be installed which monitors the allocated IP address
space and for any IP address that no host respond with MAC address , farpd will respond with
the Honeyd physical machine MAC address. Alternatively one can just install arp if the arp proxy
method is chosen to direct traffic to the virtual host, this statically assign the virtual host IP
address the MAC address of the hosting machine hence the virtual IP address will be statically
and permanently stored in the host arp cache.
3. Install Honeyd
Start Honeyd by the simple command below, and check that it is running under list
of running process, or check any other way.
Started testing Honeyd locally , (i.e accessing virtual host from the hosting machine)
using the sample configuration file “config.sample ” by redirecting the traffic for the
10.0.0.0/8 network to the physical machines loopback interface. First add the route
in the routing table to direct Honeyd traffic to the loopback.
Ensure that ping, Nmap, telnet and traceroute are installed in the local machine.
Honeyd support packet level logging to the specified file with (-l), and service level
logging with (-s). Packet level log file contains the timestamp on which the packet was
logged, the protocol and ports used, Source IP address and port, Destination IP address
and port .If a connection is successfully established then when it started, ended and the
amount of bytes transmitted. Service level logs some details on the running emulated
scripts like telnet, proxy etc.
Rest of the
Internet
Honeyd host
142.166.115.10
ISP router
142.166.115.11 142.166.115.12
The above figure shows the current network topology of our Honeyd.
1. Start farpd
Currently I am using the farpd which monitors our address space and for any received IP address
that no host reply with the MAC address , farpd respond with the hosting machines MAC
address hence directing virtual host traffic to this machine.However the best approach in our
scenario is to use the arp proxy with “arp -s hostname physical_MAC_addr pub “, this adds the
virtual addresses to the hosting machines arp cache and hence statically sharing the MAC
address with the host machine , currently it fails.
2. Start Honeyd
3. To view currently running IPTables(Note below is the list of IPTables that have been
running since connected to Internet until 31/08/2008.I am currently making some
modifications as shown in next update section)
root@nsllinux07:~# iptables -L
root@nsllinux07:~#
Below are the new modifications to IPTables. I experienced some problems with outgoing traffic,
so changed the OUTPUT policy back to ACCEPT, but only the virtual hosts are reachable. So
these are still being tested.
iptables -F
#Begin by setting all policies to drop then later accept what you want.
#Log any ssh and ftp attempts.Allow icmp,ssh and ftp to host machine only
from #142.166.115.14 and my unb machine.(This is currently just for testing)
#Drop any traffic to hosting machine(Also possible that this duplicates the
fact #that I am not allowing any input from virtual hosts to physical machine)
INSTALLING AN IDS
Currently working on installing Snort IDS so as to capture more information and be able to
generate alerts.