Realtek RTL8192CU y otros RTL8192* + hostapd + dnsmasq + ubuntu 16.04
Usar lsusb para asegurarse del chipset y revisar en Internet si el chipset soporta modo master
# Instalación del driver: apt install linux-headers-$(uname -r) build-essential dkms dnsmasq # Sacado de: http://forum.ipfire.org/viewtopic.php?t=14654 git clone https://github.com/pvaret/rtl8192cu-fixes.git dkms add ./rtl8192cu-fixes dkms install 8192cu/1.8 # si ese falla, probar dkms install 8192cu/1.10 o dkms install 8192cu/1.11 etc
depmod -a cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
# Tal vez sea necesario configurar udev para que use wlan0, para eso debemos usar la mac, ifconfig -a mcedit /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="60:e3:27:1f:64:4a", NAME="wlan0"
# Configurar la interfaz de red mcedit /etc/network/interfaces auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 10.0.0.1 netmask 255.255.255.0
# Configurar dnsmasq mcedit /etc/default/dnsmasq DNSMASQ_OPTS="--conf-file=/etc/dnsmasq.conf" mcedit /etc/dnsmasq.conf interface=wlan0 dhcp-range=10.0.0.20,10.0.0.200,12h dhcp-option=1,255.255.255.0
# Descargar hostapd desde: https://w1.fi/hostapd/ # Si se busca la version 2.5: https://w1.fi/releases/ # Instalar y configurar hostapd tar xzvf hostapd-2.5.tar.gz cd hostapd-2.5/ git clone https://github.com/pritambaral/hostapd-rtl871xdrv.git patch -Np1 -i hostapd-rtl871xdrv/rtlxdrv.patch cp hostapd-rtl871xdrv/driver_rt* src/drivers/ cp -f hostapd-rtl871xdrv/.config hostapd/.config cd hostapd hostapd-2.5/hostapd# make && make install
# Configurar hostapd: mcedit /etc/hostapd/hostapd.conf interface=wlan0 driver=rtl871xdrv ssid=pico hw_mode=g channel=6 macaddr_acl=0 ignore_broadcast_ssid=0 auth_algs=2
#####Sets WPA and WPA2 authentication##### #wpa option sets which wpa implementation to use #1 - wpa only #2 - wpa2 only #3 - both wpa=1 #sets wpa passphrase required by the clients to authenticate themselves on the network wpa_passphrase=0123456789 #sets wpa key management wpa_key_mgmt=WPA-PSK root@lisab:~#
# Para solucionar problema de falta de entropía, error lack of entropy apt install haveged
# Para lanzar hostapd: hostapd hostapd -d -e /dev/urandom /etc/hostapd/hostapd.conf
















