I was trying to perform MITM attack over wireless. The thing I used is

airbase-ng --essid "FAKEAP" -c 10 wlan0mon

to create a fake access point. This created a tap interface at0 on which I ran isc-dhcp-server to hand out IP address.

When a client connects to this access point, it gets IP address and shows connected for like 10 seconds, after that I get disconnected and again connect to my AP for like 10 sec.

This connection and disconnection keeps on repeating. So can somebody tell what can be the possible solution?

Steps I am doing are:

$airmon-ng start wlan0

$vim /etc/dhcp/dhcpd.conf
subnet netmask {
option routers;
option subnet-mask;
option broadcast-address
option domain-name-servers;

$vim /etc/default/isc-dhcp-server

$vim /etc/network/interfaces

ifauto at0
iface at0 inet static

$airbase-ng --essid "FAKEAP" -c 10 wlan0mon

The above command starts the fake AP

$ifconfig at0 up

$iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

$iptables -A FORWARDING -i at0 -j ACCEPT

$systemctl restart isc-dhcp-server
  • 1
    Try without fixed channel. Maybe someone else also is using channel 10 and this might lead to connectivity problems.
    – Matte
    Aug 15, 2017 at 5:17
  • Not working out tried that also anything else that could be wrong ? Aug 15, 2017 at 9:28

1 Answer 1


First of all you do not need to do:

airmon-ng start wlan0

In order to create an AP you do not need to have the WiFi interface in monitor mode.

You should also try to remove other processes using the WiFi interface:

airmon-ng check kill

The documentation says:

“check” will show any processes that might interfere with the aircrack-ng suite. It is strongly recommended that these processes be eliminated prior to using the aircrack-ng suite. “check kill”

Some of these processes could interfere with aircrack.

And in my opinion you should check mana toolkit, is a suitte of scripts focused on mitm attacks over wireless.

For example this script from mana toolkit will create a rogue AP. You will only need to set the network interfaces.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .