garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️ (也欢迎关注B站 https://space.bilibili.com/2123686105 )
GNU Lesser General Public License v2.1
1.71k stars 152 forks source link

Wifi hotspot without internet #16

Closed SomaGallai closed 2 years ago

SomaGallai commented 3 years ago

Hi,

I am trying to create a wifi hotspot, that works without internet connection and still I would be able to ssh to it from another computer. At the moment it is connected to another router and the hotspot is working as expected, but when there is no internet the SSH is not working.

thisisagan commented 2 years ago

metoo

garywill commented 2 years ago

Could you guys be more clear? I dont understand whats going on

aiden-jeffrey commented 2 years ago

I would also like this. The use case is we have an rpi running with no touch screen or user input device. If the box can't connect to the wifi it knows about, then we'd like it to turn into an ap that serves just a simple ui which the user can connect to (on their phone for example) and supply the local wifi ssid and pw. I'm running:

sudo ./lnxrouter --ap wlan0 test-hello -p test-hello --no-dns --no-dnsmasq -w 2

I can see the network on my phone, but it fails to login. Note that I added --no-dns as I was seeing dnsmasq errors, and i'm not sure i need dns for my application.

SomaGallai commented 2 years ago

Sorry for the inactivity, the issue was solved by creating a configuration file with all the settings that can be seen in the 'define_global_variables()' section of your software and a small script that does the following:

Hope this provide some help people still trying to achieve this solution.