Das Festlegen der MAC-Adresse der Honeyd-Vorlage schlägt fehl

413
arne.z

Ich versuche, die MAC-Adresse einer meiner honeydVorlagen festzulegen, erhalte jedoch eine Fehlermeldung, die besagt, dass es keine Schnittstelle gibt, die die IP-Adresse erreichen kann, an die ich binden möchte. Folgendes habe ich in meiner honeyd.confAkte:

route entry 30.0.0.1 route 30.0.0.1 link 30.0.0.0/24  create routerone set routerone personality "Cisco 7206 running IOS 11.1(24)" set routerone default tcp action reset set routerone default icmp action open add routerone tcp port 23 "/etc/honeypot/scripts/telnet/faketelnet.pl"  create winxp set winxp personality "Linux Kernel 2.4.20" #set winxp personality "Microsoft Windows XP Professional SP1" set winxp default tcp action reset set winxp default udp action block set winxp default icmp action open add winxp tcp port 22 proxy 10.0.0.200:22 add winxp tcp port 23 "/etc/honeypot/scripts/telnet/faketelnet.pl" add winxp tcp port 24 "sh /etc/honeypot/scripts/hello.sh" set winxp ethernet "00:11:22:33:44:55"  bind 30.0.0.100 winxp bind 30.0.0.1 routerone 

Beim Versuch, den honeydDämon auszuführen, erhalte ich folgende Fehlermeldung:

$ honeyd -d -i ens160:1 -f honeyd.conf 30.0.0.0/24 Honeyd V1.5c Copyright (c) 2002-2007 Niels Provos honeyd[4093]: started with -d -i ens160:1 -f honeyd.conf 30.0.0.0/24 honeyd[4093]: listening promiscuously on ens160:1: (arp or ip proto 47 or (udp and src port 67 and dst port 68) or (ip and (net 30.0.0.0/24))) and not ether src 00:0c:29:40:e7:6a honeyd[4093]: Demoting process privileges to uid 65534, gid 65534 

Es funktioniert gut, wenn ich nicht die Ethernet-Adresse einstelle und es pingen kann. Natürlich gibt es eine Schnittstelle, die 30.0.0.100 erreichen kann. Ich habe einige Konfigurationen gesehen, die eine feste Ethernet-Adresse in Kombination festlegen dhcp, aber ich muss an eine statische IP-Adresse binden.

Irgendwelche Ideen?

0
Ich kenne das Produkt nicht, aber was funktioniert eigentlich nicht? Wenn Sie diese Konfiguration lesen, sieht es so aus, als würden Sie der "winxp" -Einheit die IP 30.0.0.100 zuweisen. Seth vor 7 Jahren 0

1 Antwort auf die Frage

0
arne.z

Okay, ich habe es endlich geschafft und es stellte sich heraus, dass ich die Funktion der MAC-Adresse falsch verstanden habe. Ich dachte, es wäre dazu gedacht, eine beliebige MAC-Adresse zu fälschen, aber es scheint, als würde sie tatsächlich dazu verwendet, anzugeben, an welche Schnittstelle honeydsie die Ausgabe sendet. Ich hatte das Problem, dass honeydseine Antwort über eine andere Schnittstelle gesendet wurde als die, von der die Anfrage kam. Also habe ich konfiguriert honeyd, die Antwort der winxpVorlage an die gewünschte Schnittstelle zu senden .

Hier ist die Konfiguration, die für mich funktioniert hat:

Ich laufe honeydauf der br192Schnittstelle.

$ ifconfig br192 br192 Link encap:Ethernet HWaddr 00:0c:29:16:3c:80  inet addr:0.1.2.3 Bcast:255.255.255.255 Mask:0.0.0.0 inet6 addr: fe80::20c:29ff:fe16:3c80/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:103730 errors:0 dropped:0 overruns:0 frame:0 TX packets:771 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000  RX bytes:21835405 (21.8 MB) TX bytes:72694 (72.6 KB) 

Meine honeyd.confDatei:

create winxp set winxp personality "Microsoft Windows XP Professional SP1" set winxp default tcp action reset set winxp default udp action reset set winxp default icmp action open set winxp ethernet "00:0c:29:16:3c:80"  bind 10.0.0.200 winxp 

Beginnend honeyd:

$ sudo honeyd -d -i br192 -f /etc/honeypot/honeyd.conf 10.0.0.200/31 Honeyd V1.5c Copyright (c) 2002-2007 Niels Provos honeyd[5524]: started with -d -i br192 -f /etc/honeypot/honeyd.conf 10.0.0.200/31 honeyd[5524]: listening promiscuously on br192: (arp or ip proto 47 or (udp and src port 67 and dst port 68) or (ip and (net 10.0.0.200/31))) and not ether src 00:0c:29:16:3c:80 honeyd[5524]: Demoting process privileges to uid 65534, gid 65534