Evil Twin Adapter Won't Forward Traffic
Hi,
This is my first time posting to a forum because usually solutions have already been found for most issues. I however, have had zero luck getting my evil twin network to work. It is for my Penetration Testing class in college and I am at a complete loss as to what might be causing my issues.
I am running Kali within VMware using a replicated internet connection and I use eth0 as my route to the internet and at0 as my AP. I can connect to my wireless network and receive an IP address however, I receive a DNS error when trying to access the internet. Another possibly related problem is that my adapter crashes shortly after I connect. I received this error the last time it happened:
wi_read(): Network is down
Error: Got channel -1 expected a value > 0
My network is configured as such:
I created a 192.168.2.0 network and am trying to access the gateway on the 192.168.1.0 network.
These are my configurations:
/etc/dhcp/dhcpd.conf:
Authoritative;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.20 192.168.2.30
option domain-name-servers 192.168.2.1
option domain-name mywifi
option routers 192.168.2.1
default-lease-time 600;
max-lease-time 7200;
}
ifconfig at0 192.168.2.1 netmask 255.255.255.0
ifconfig at0 mtu 1800
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
iptables commands:
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Once proven that I can forward traffic I would like to direct traffic to 10000 and monitor with ettercap but at the moment I would be content just to get the internet to work.
Any help is greatly appreciated :)