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 ...
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.
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 ...
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 ...
You can create an access point without Internet connection through the create_ap command line tool.
Internet sharing methods: NATed or Bridged or None (no Internet sharing).
git clone https://github.com/oblique/create_ap.git
AP without Internet sharing:
create_ap -n wlan0 MyAccessPoint ...
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 ...
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 ...
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 ...
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 ...
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:
from RPi) bridge 10.8.0.2/24 ┌──────────┐ 10.8.0.1/24 192.168.50.2
╱ wifi ┌───────┐ /...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
To enable Wifi Hotspot, you can look into
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 ...
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)
I would post this as comment, but I'm not allowed to due to lack of reputation
For the initial setup you will need to access the raspberry pi by monitor and keyboard. then you need to configure your raspberry pi to autoconnect to the hotspot of your android device. then you need to find out the ip address of your raspberry pi. then you should be able to use ...
Obviously, it's the wrongest way! Actually, if you do that, you remove the functionality of the router.
I recommend trying to install OpenWrt on your router if it's possible. It has a captive portal (nodogsplash) feature by own.
First, thx all for the answers combined they led me to this configuration ( I voted them all up).
Following, the different bash scripts I used for my setup:
Setup a custom local address
The dns.sh setup a custom local DNS entry. This entry enables devices within the network to access the device, the user does not need to know/type an IP address into his ...
DHCP method would be maybe ok but unluckily, fixed IP gives you the best approach. Because if you set and receive IP address by DHCP server, you might not know what raspberry IP address is. DHCP does not always give you the same address that you have used before.
So you manipulate manually in /etc/network/interface file.
#iface wlan0 inet manual
My mistake was to try the whole process in a virtual machine, today i tried directly on the raspberry and i solved it putting this line of code in the /etc/rc.local file:
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In ...
goldilocks is right, your chipset is not supported. If you decide to obtain a new wireless adapter, I invite you to check this wiki page listing essential options provided by various WIFI chipsets. The capability required by hostapd is called AP (short for Access Point). For example, take a look at your current chipset, RTL8187:
Personally, I use adapters ...
Simple mistake that I made was not connecting the device that I want to view the stream on to the same network as the Pi. Once I connected my Macbook and tablet to the same network, the streaming server worked perfectly.
I have created a git repository to do one click setup. the main jobs are install tools for hotpots service, and script code to run in station mode and access point mode.
The best way to setup is connect your RPI to internet through LAN cable, you also can connect wifi before doing setup.
I got same problem, I didn´t receive any response from my phone (except WhatsApp).
After red this report (https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/876458), I remove ´bind-interfaces´ from dnsmasq.conf. And it solve this problem.