My Opensuse 13.2 Xfce system is connected to the internet with ethernet, and has a Wifi netcard, from which I want to create a hotspot for my mobile devices. Sadly it seems that Xfce is rather feature lacking, so I’ve tried going through config files and scrips with the help of this guide: https://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/
(not mentioned in the guide: I had to make a rule for NetworkManager not to touch my Wifi card, for the nl80211 driver to be able to load)
I use the dnsmasq route in the guide, as it can’t find the “dhcpd” command even though I have dhcp installed, along with a bunch of other errors. It says dnsmasq is better anyways.
None of my devices get an IP address after connecting to my hotspot, however. Also, once I have started the hotspot, my computer loses all internet connectivity, seemingly because of DNS problems.
I might have made a mistake, in that my /etc/dnsmasq.conf file now only contains the content of the guide, while it says the content should be appended to the existing file. I don’t remember deleting anything from it, though.
I’m not really sure what to do. If I go into Network Manager and set my Ethernet’s IPv4 Method to “Share to other computers”, I lose internet. I can create a new wireless network that I set to Ad-Hoc, but it doesn’t… turn on. I have set that to “Share to other computers” as well. And worse, the only security available is WEP.
But I’m able to create a hotspot with the script form the page I linked to in my first post, doesn’t that put it into AP mode…? I think the issue is with DHCP. All my config files are taken directly from that page, the only things I have changed is the names of my adaptors, SSID, password, and that I only want WPA-PSK2.
Yes, devices detect and can connect to the access point. They are then stuck at waiting for an IP address.
Yes, dnsmasq is running.
default via 10.62.68.1 dev enp2s0 proto static metric 1024 10.0.0.0/24 dev wlp3s7 proto kernel scope link src 10.0.0.1
10.62.68.0/24 dev enp2s0 proto kernel scope link src 10.62.68.250
22.214.171.124 via 10.62.68.1 dev enp2s0 proto dhcp metric 1
-P INPUT DROP-P FORWARD DROP
-P OUTPUT ACCEPT
-A FORWARD -i wlp3s7 -j ACCEPT
wlp3s7 is the name of the wireless adapter, enp2s0 is the ethernet
I still don’t know how to activate the hotspot I create with Network Manager. It just sits there.
I have made some progress. I had to right-click the icon in the task bar, and tick off “Enable Wi-fi”. Now I was able to use it to create my Wi-fi. My devices can’t see it though, and it still only supports WEP encryption. It just looks like the computer connects to it’s own Wi-fi. I have set the mode to Ad-hoc. If I set the mode to Infrastructure, it supports WPA-PSK2, but then it disappears from the list of Wi-fi networks I could create.
I also tried setting it to no security at all, it still doesn’t show up on my devices.
At the top in the right-click menu, it says that Ethernet is disconnected, even though that is what’s providing internet…
nmcli d after creating the Wi-fi:
DEVICE TYPE STATE CONNECTION enp2s0 ethernet connected Wired connection 1
wlp3s7 wifi connected ComeWithMe!!
lo loopback unmanaged --
nm is unknown:
nmcli nmError: Object 'nm' is unknown, try 'nmcli help'.