Difference between revisions of "Honeyd"

From ArchWiki
Jump to: navigation, search
(use new templates, see Help:Style)
Line 1: Line 1:
[[Category:Networking (English)]]
[[Category:Security (English)]]
[[Category:Security (English)]]

Revision as of 17:35, 23 April 2012


Honeyd is an open source computer program that allows a user to set up and run multiple virtual hosts on a computer network. These virtual hosts can be configured to mimic several different types of servers, allowing the user to simulate an infinite number of computer network configurations. Honeyd is primarily used in the field of computer security by professionals and hobbyists alike.

This page goes over how to get a simple setup up and running. My server uses IP address My honeyd daemon will listen at


Install Honeyd from the AUR.


Create these files:

create host
set host default tcp action reset
add host tcp port 23 "/tmp/hello.sh"

bind host
echo "Led Zeppelin, great band or greatest band?"
while read data
        echo "$data"

On your firewall, add the following route:

Destination IP 	Netmask 	Gateway

Open up 2 shells on your server. In the first shell, start the honeyd program. In the second shell, use nc to connect to honeyd. The output should be as follows:

$ honeyd -d -p /usr/share/honeyd/nmap.prints -f default.conf
Honeyd V1.5c Copyright (c) 2002-2007 Niels Provos
honeyd[3985]: started with -d -p /usr/share/honeyd/nmap.prints -f default.conf
Warning: Impossible SI range in Class fingerprint "IBM OS/400 V4R2M0"
Warning: Impossible SI range in Class fingerprint "Microsoft Windows NT 4.0 SP3"
honeyd[3985]: listening promiscuously on eth0: (arp or ip proto 47 or (udp and src port 67 and dst port 68) or (ip and (net and not ether src MAC_ADDY_HERE
honeyd[3985]: Demoting process privileges to uid 99, gid 99
honeyd[3985]: Connection request: tcp ( -
honeyd[3985]: Connection established: tcp ( - <-> /tmp/hello.sh
honeyd[3985]: Connection dropped by reset: tcp ( -
^Choneyd[3985]: exiting on signal 2
$ nc 23
Led Zeppelin, great band or greatest band?


There, you have a simple, basic, set up of honeyd. To kill honeyd, issue the command

killall honeyd

I would recommend the book "Virtual Honeypots: From Botnet Tracking to Intrusion Detection" by Niels Provos to anybody who would like to really get to know honeyd.

More Resources