Hot answers tagged

7

my real world limit was 22 school kids in a classroom connected via there smartphones directly to the pi, now the access point was an open hotspot so the overhead was reduced drastically reduced as no encryption took place, also my pi-3 hadn't actually reached its limit as I'm sure more clients could have connected but was preforming rather sluggishly ...


7

In terms of networking, this is certainly possible. Any WIFI access point can provide WIFI access to other devices. A WIFI accesspoint typically also acts as a DHCP server giving out IP addresses and DNS configuration, and also as a gateway, routing traffic to other networks, notably the internet. A WIFI accesspoint with no connection to internet will not be ...


6

You could do that with iptables. iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination localhost:80 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination localhost:80 This redirects all requests made via port 80 and 443 (i.e. opening any website) to be redirected to whatever is running on your hotspot's port 80.


6

Update: I have found that it is better to use wlan0 as interface for the access point and wlan1 as client up-link. But this other way around does not answer the question. So I have made a new question Access point as WiFi repeater with additional WiFi-dongle. Look there for an up to date configuration. This answer here will not maintained anymore. The real ...


4

You can create an access point without Internet connection through the create_ap command line tool. Features Internet sharing methods: NATed or Bridged or None (no Internet sharing). Install create_ap: git clone https://github.com/oblique/create_ap.git cd create_ap make install AP without Internet sharing: create_ap -n wlan0 MyAccessPoint MyPassPhrase


4

First some general information to get an idea what to do. As you already have found there are in general two ways to configure a Virtual Private Network: a bridged setup on OSI Layer 2 and a routed setup on OSI Layer 3. Nowadays we have mainly two VPN programs that are mostly used: the modern and up comming Wireguard and meanwhile classic OpenVPN. I would ...


4

There are several considerations here. The straightforward way is to log what the DNS forwarding (you've probably enabled) in your pi does. Typically, this will be a service such as dnsmasq, depending on how you set up the hotspot functionality of the pi. However, that will only tell you which URLs your children where browsing, and could include a lot of ...


3

I was wondering if its possible to have a setup where just by plugging a raspberry pi via ethernet or usb to a router and the pi being connected to the network everyone trying to access the network will be presented with a captive portal? No. Captive portal must somehow intercept and redirect the client's traffic. It would be a disaster if plugging a ...


3

On a off-line Pi configured as a hotspot thanks to Using your new Raspberry Pi 3 as a Wi-Fi access point with hostapd, I configured a hard coded 40 IP address limit. Seems to handle all of them properly. Because using web sockets for real-time interactions among all connected users on my Node.js app, I didn't try more. More generally, I think that though ...


3

I have used: iptables --flush iptables --table nat --flush iptables --delete-chain iptables --table nat --delete-chain iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD --in-interface wlan0 -j ACCEPT iptables -t nat -A PREROUTING -p tcp -m tcp --dport (PORT NUMBER) -j DNAT --to-destination (COMPUTER IP ...


3

Some years later I have found new possibilities using systemd-networkd to create a WiFi router/repeater. The built-in WiFi device of a Raspberry Pi is capable to create an access point together with a client connection simultaneously as uplink to another WiFi internet router. How to do it you can look at Access point as WiFi router/repeater, optional with ...


3

I had a look into how wpa_supplicant parses the configuration file, and it seems like it extracts the exact bytes between ssid=" and the last ". Escaped unicode (\u) and escaped non-ascii characters (\x) will not work. In your case, you would have to specify your SSID like this: ssid="My Name’s iPhone" Which would look like this in a hex editor: 09 ...


3

There are two steps to this. First you have to request the login page from the server, then you have to send it the reply it expects, as if from a web browser. That may be easy or difficult, but it almost certainly requires some coding since the nature of such login pages varies widely and so the solution must be tailored to it. The first step would be to ...


3

I didn't want to leave this unanswered, so I found an old Pi B+ and an AP-Compatible WiFi dongle, and after trying a few times, finally found a way for this to work. Please try the following steps: BTW, I typed full commands below so you can open this page on your Pi's browser (starting on step 2) and copy and paste on the Terminal Download and run ...


3

Having a remote OpenVPN server at your home and connect to it with the RasPi is a good solution if you cannot use port forwarding on the modem. Here is an example setup for what you have described: (dhcp from RPi) bridge 10.8.0.2/24 ┌──────────┐ 10.8.0.1/24 192.168.50.2 ╱ wifi ┌───────┐ /...


3

Check out this test of RPi performance w.r.t various network interfaces. Built-in WiFi on an RPi 3 is capped at 36 Mbps, and a USB dongle is capped at about 80Mbps in ideal conditions. At 10 meters distance, those numbers drop to 32 and 64 Mbps respectively. After you factor in overhead from two interfaces running simultaneously, routing performance losses, ...


3

It should not be a problem to use OTG gadget mode on the USB connection to create an ethernet connection to your PC. It is part of the PC to route its internet connection to the RasPi and well known but out of scope here. Doing tethering with an android cellphone is working out of the box with the default Raspbian image. So it should be possible to use the ...


2

You can take the ssid, in this case "My Name’s iPhone" (without the quotes), and convert to hex using https://www.browserling.com/tools/text-to-hex. Take the result, in this case 4d 79 20 4e 61 6d 65 e2 80 99 73 20 69 50 68 6f 6e 65 and remove the spaces. Or in bash $ echo -n $'My Name\xE2\x80\x99s iPhone' | od -t x1 -A n -w100000 | tr -d ' ' ...


2

The iPhone prompt includes the Unicode character U+2019 "single right quotation mark". This is valid (if very inconvenient). It is easy enough to include Unicode characters in strings. The following would echo this at the bash command prompt. echo $'My Name\u2019s iPhone' echo $'My Name\xE2\x80\x99s iPhone' The (very sketchy) documentation of man ...


2

Atheros based wifi adapter - TP-LINK TL-WN722N, would definitely solve your purpose of making wifi adapter work in dual mode. The driver should work out of the box on raspian or should be little effort to figure out and install the driver. You would however need other settings to being up vlan interface, etc.


2

I have done this with 2 USB nano wifi adapters. The first challenge is making sure one of the wifi adapters supports "master" mode which is necessary to configure it as a hotspot. Try sudo iwconfig wlanX mode master on each one. If one of them supports master mode (no error), you're in business. If not, there's no sense continuing until you have one that ...


2

Why my Wlan adapter can't start in master mode? Not all wifi adapters are built for this purpose, and "Operation not supported" implies this is one of them. This archived post from the linux wireless mail list a few years supports that: I own an Alfa AWUS036H network adapter using the rtl8187 driver [...] which apparently requires master mode to be ...


2

Firewall/Gateway/DHCP/DNS = 10.150.15.1 wlan0 = 10.150.15.2 eth0 = 10.150.15.3 Unless you're bridging interfaces (which you don't appear to be), you must have each network interface within it's own network prefix (subnet), or else the device won't know how to route packets. So if you change your wlan0 to 10.150.20.0/24 instead of 10.150.15.0/24, that'll at ...


2

Generally when you get a new router it is configured to dish out DHCP addresses. Part of the DHCP configuration that is handed out is the DNS server, which is normally pointing to the router itself. For example, you connect to the router wifi, and get an IP address in the range 192.168.1.2-100, a gateway address of 192.168.1.1 and a dns server address of ...


2

The Raspberry Pi 3B and the Pi Zero W both share the same Wifi and Bluetooth chip, and they both support Wifi Access Point mode. Here at my desk is sitting a cute little Pi Zero W that acts as a network bridge and indicator, bridging from wired Ethernet to Wireless. The wireless side is the Pi operating in Access Point mode. hostapd directly supports the 3B ...


2

To use none security or to use WEP security you have just to configure wpa_supplicant in /etc/wpa_supplicant/wpa_supplicant*.conf. For example I take Setting up a Raspberry Pi as an access point - the easy way in section Configure wpa_supplicant as access point. Just use this configuration for an unsecured access point: cat > /etc/wpa_supplicant/...


2

To enable Wifi Hotspot, you can look into https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md and https://elinux.org/RPI-Wireless-Hotspot To share file, You can use Apps like ES File Explorer The SFTP option in ES File Explorer lets you share files between Devices. Some Short Notes of its usage Connect Your Android Phone ...


2

From the hostapd.conf file : # Maximum number of stations allowed in station table. New stations will be # rejected after the station table is full. IEEE 802.11 has a limit of 2007 # different association IDs, so this number should not be larger than that. # (default: 2007) max_num_sta=255


2

I don't see a usable possibility to have a static ip address with a mobile internet connection. The mobile device must give the RasPi a default route with its gateway. The gateway isn't static so you really should use DHCP. With Raspbian or Raspberry Pi OS accepting network settings from a DHCP server (your Android cell phone) is working out of the box with ...


Only top voted, non community-wiki answers of a minimum length are eligible