Forum Thread: Can't Connect to Fake AP with Airbase-Ng

I use kali rolling and I try to set up a fake access point using airbase-ng. First I run airbase then I set up my dhcp server in /etc/dhcp/dhcpd.conf as follows:

default-lease-time 600;
max-lease-time 7200;
subnet netmask {
option subnet-mask;
option broadcast-address;
option domain-name-servers;

the contents of /etc/default/isc-dhcp-server :


then I use those commands to set up the interface at0 and allow for network access:

ifconfig at0 up
ifconfig at0 netmask
service isc-dhcp-server restart
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD -j ACCEPT --in-interface at0
echo 1 > /proc/sys/net/ipv4/ip_forward

But when I connect with any device to this AP it doesn't connect at all. Can someone help with what is causing this problem?

Join the Next Reality AR Community

Get the latest in AR — delivered straight to your inbox.

Be the First to Respond

Share Your Thoughts

  • Hot
  • Active