can an adapter have both a hotspot and be connected to a WiFi network at the same time?
Sim, é possível criar um hotspot wifi a partir da mesma conexão wifi
How do I share the Internet of the currently connected network over a hotspot in Linux?
Você deve usar create_ap
Instale as dependências:
sudo apt-get install dnsmasq haveged hostapd build-essential
Para instalar o create_ap
run:
git clone https://github.com/oblique/create_ap
cd create_ap
sudo make install
ativar / iniciar o serviço:
service create_ap start
Para verificar a execução do status:
service create_ap status
Usando os recursos systemd
(não está disponível no Ubuntu 14.04):
sudo systemctl start create_ap.service
sudo systemctl enable create_ap.service
Crie o AP
Para criar sua execução de ponto de acesso:
sudo create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase
Atualização para o Ubuntu 14.04 :
the
hostapd
version in Ubuntu 14.04 is buggy and doesn't work properly. To get AP-Hotspot to work withhostapd
in Ubuntu 14.04, you need to downgradehostapd
and useapt
to hold the package so it's not upgraded.
Remova a versão atual de hostapd
:
sudo apt-get remove hostapd
64 bits
cd /tmp
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
32 bits
cd /tmp
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd