TAPE,
i will try to help you out.
Modifying the dhcp.conf file as needed;
dhcp.conf file in /etc/
It's called dhcpd.conf not dhcp.conf and it's located at /etc/dhcp3/ not /etc/
Whatever I try the dhcp3 is refusing to (re)start.
Making it impossible for me to get the IPs issued.
This is probably to a wrong format of the dhcpd.conf, or you are not placing-naming correctly your dhcpd.conf file.
This may be OS dependant, however the fake aps are not being shown (showing up as "hidden" or "unknown" in winXP)
This is not OS dependent. It's wifi-card - drivers - airbase-ng. Usually after some time the ESSID will came up with the right name. Give at airbase-ng some time to established. "sleep 10"
The code I am using is as follows ;
airbase (with mon0 being wlan0 started --> monitor mode)
Code:
airbase-ng -e "TEST_AP" -c 9 mon0
There is nothing wrong with your code. You can do allot more with airbase.
Code:
ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
option domain-name "example.com";
range 10.0.0.10 10.0.0.20;
}
Personally I don't like to use a class A network IPs for my wlan. I use a class C, like the following:
Code:
ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.2.128 netmask 255.255.255.128 {
option subnet-mask 255.255.255.128;
option broadcast-address 192.168.2.255;
option routers 192.168.2.129;
option domain-name-servers DNS;
range 192.168.2.130 192.168.2.140;
}
Replace DNS with the DNS server of your IP.
Create a file dhcpd.conf with the above and place it in /etc/dhcp3/
Alternately you can run dhcpd3 by:
Code:
dhcpd3 -cf dhcpd.conf at0
So, you can see any errors that may came up.
Our internal network:
Code:
ifconfig at0 up
ifconfig at0 192.168.2.129 netmask 255.255.255.128
route add -net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129
Here are IPTABLES for the above network
Code:
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface at0 -j ACCEPT
iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to INTERNET_IP
Replace INTERNET_IP with your internet IP
Maybe I missed something because I am in a hurry.
Hope I helped some.
Nick