Monday, July 13, 2015

Easily creating a wireless AP to share a wired connection on Ubuntu

I'm currently stuck at a hotel where the wireless is not working correctly, but I have wired internet. Googling around I found that hostap with a lot of configuration could be used to create a wireless AP and share this connection, but I wanted an easier solution.

Luckily I found the awesome create_ap script at https://github.com/oblique/create_ap



To use it, I just did the following:

# install hostapd
sudo apt-get install hostapd
# get the script

git clone https://github.com/oblique/create_ap
# install it 

cd create_ap
sudo make install
# share wired connection eth0 via wlan0 and set ssid to fix_yor_internet
sudo create_ap wlan0 eth0 fix_your_internet

And done! Thanks to oblique for his awesome little script :)