DinoTools/dionaea

Dionaea not running, cleanup loop and no services nor ports up

merovynn opened this issue · 1 comments

ISSUE TYPE
  • Bug Report
DIONAEA VERSION
0.11.0
CONFIGURATION

Preset

OS / ENVIRONMENT
  • Debian 10.0 (buster). Raspberry Pi OS (Legacy)
SUMMARY

I try to start dionaea, but I keep getting errors. First, it was that addresses were alredy in use, and when I manage to solve that (I think) I just get no errors, kind of like a loop which never ends. I'll include each and every step I've taken. I would really really thank to solve this ASAP :)

STEPS TO REPRODUCE

sudo apt update
sudo apt upgrade
sudo apt install hostapd dnsmasq iptables
sudo systemctl stop hostapd
sudo systemctl stop dnsmasq
sudo nano /etc/dhcpcd.conf

interface wlan0
static ip_address=192.168.220.1/24
nohook wpa_supplicant

sudo systemctl restart dhcpcd
sudo nano /etc/hostapd/hostapd.conf

interface=wlan0
driver=nl80211
hw_mode=g
channel=6
ieee80211n=1
wmm_enabled=0
macaddr_acl=0
ignore_broadcast_ssid=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

  (This is the name of the network)

ssid=BLUEpiLL

  (The network passphrase)

wpa_passphrase=Goorlami

sudo nano /etc/default/hostapd

DAEMON_CONF="/etc/hostapd/hostapd.conf"

sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
sudo nano /etc/dnsmasq.conf

interface=wlan0
server=1.1.1.1
dhcp-range=192.168.220.50,192.168.220.150,12h

sudo nano /etc/sysctl.conf

net.ipv4.ip_forward=1

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
sudo nano /etc/rc.local

iptables-restore < /etc/iptables.ipv4.nat

sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd
sudo service dnsmasq start

I follow exactly what is said here without a problem: https://dionaea.readthedocs.io/en/latest/installation.html#
Then I go to /opt/dionaea/bin and I run sudo ./dionaea
First, the problem was addresses were alredy in use. After some searching, I believe I found the reason: dnsmasq was using them.

image

I tried to stop it, and I stopped getting that error, but then I got nothing at all.

image

When I first tried this morning, I got another error: I had no permission to do some stuff, but I think that's because I was running ./dionaea without the "sudo" part. I've even tried re-installing the OS again, doing everything exactly as mentioned, but I can't manage to set dionaea right. I have no clue what can be wrong.

EXPECTED RESULTS

For it to work, maybe to be able to look at the current processes somehow and seeing dionaea's enabled and running, but I got nothing.

ACTUAL RESULTS

I saw no processes running, neither dionaea nor its services.

Thanks for opening your first issue here! Be sure to follow the issue template!