Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
25

━━━ Setting up an access point ━━━ We are talking about an access point together with an ethernet port eth0. If you want an access point together with a wlan0 client connection to another wifi network (wlan repeater) then look at Access point as WiFi router/repeater, optional with bridge. It is possible to configure Raspbian Stretch as a wifi access point ...


16

We are talking about an access point together with a wlan0 client connection to another wifi network (wlan repeater) or an internet router. If you want an access point together with an ethernet port eth0 as uplink to a switch or an internet router then look at Setting up a Raspberry Pi as an access point - the easy way. Tested on a Raspberry Pi 4B with ...


7

I assume you are using Raspbian and you have setup the access point with hostapd. To switch the access point this commands should do: rpi ~$ sudo systemctl stop hostapd.service rpi ~$ sudo systemctl start hostapd.service It is difficult to say much more about start/stop hostapd because I don't know anything about your setup. Do you use a stand alone access ...


7

It is known that the Raspberry Pi can spawn an access point and connect as client to another wifi network simultaneously with its on board wifi chip. How to do that you can look at Access point as WiFi repeater, optional with bridge. But using a second USB/WiFi dongle is simpler and depending on its hardware it may be possible to avoid the limitations of ...


6

Access point and client mode are both running as services so we should use systemd-networkd to switch off one service and switch on the other. With its options we are able to do it without rebooting. For reference I use Raspbian Stretch Lite 2019-04-08 full upgraded with sudo apt update && sudo apt full-upgrade && sudo reboot done at 2019-04-...


6

First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained here: apt update && apt -y full-upgrade systemctl mask networking.service dhcpcd.service sudo mv /etc/network/interfaces /etc/network/interfaces~ sed -i '1i resolvconf=NO' /etc/resolvconf.conf systemctl enable systemd-networkd.service ...


5

It is exactly determined what the Raspberry Pi 3B+ is able to do with its WiFi on-board device. With the command iw you can show what interface combinations are possible. Just execute $ sudo iw list | grep -A4 "valid interface combinations:" valid interface combinations: * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, ...


5

I don't know something about AWS VPC. But because it seems to be only a routing problem I will use openVPN for reference. For routing it should not be make a big difference. I will try to be as generic as possible. An issue is that it isn't possible to add a tun interface to a linux bridge. That's exactly what the error message tells you. On openVPN there ...


4

TL;DR use hw_mode=a I see that the man pages for hostapd are quite useless I found a more useful page https://wiki.gentoo.org/wiki/Hostapd with the following example 802.11a/n/ac with WPA2-PSK and CCMP A simple but secure AP for recent hardware: FILE /etc/hostapd/hostapd.conf interface=wlan0 # the interface used by the AP hw_mode=a ...


4

I only had a glance at the tutorial you have linked, tldr; So I don't know where exactly do you went wrong. And it is difficult to follow your description. You described something and a bit later you changed a subnet and after that defining static ip addresses. And that all may impact dhcpcd, hostapd and dnsmasq and all must play together with different ...


3

This answer is not thought for setup. For setup look at the other answer to this question starting with Setup wifi repeater. This is mainly for troubleshooting and to show how it works with detailed commands step by step and checkpoints but without background information. I suppose you have a monitor, keyboard and mouse attached to your Raspberry Pi and have ...


3

You have to do three steps: create a virtual interface ap0 for the access point start access point daemon hostapd using interface ap0 start wpa_supplicant for wifi client using interface wlan0 You have to do it exactly in this order otherwise the setup will fail. I have seen many attempts to achieve this including restarting services in order with special ...


3

This command will list all connected devices on the interface wlan0 with details including the MAC address: sudo iw wlan0 station dump


3

That's a complex configuration and I don't have an overview about the possible interactions. But here are some information that may help you. I assume you are using a Raspberry Pi 3B or 3B+. First of all you can see what combinations of connections are possible with the on-board WiFi device. Show it with: rpi ~$ iw phy Just at the end of the output you ...


3

The capturing is a job for tcpdump. As you have a bridge, you can capture on either side (eth0 or wlan0), but I would recommend the side where the device you want to monitor is attached. If you have additional devices, you will want to filter. You can use either the MAC address or the IP address. You can also omit the filter to capture everything. tcpdump -...


3

If the w3m text browser does not work you can try to use the classic text browser lynx. It is also available from the Raspbian repository. You can also use scripting for login. I have done it with curl but it has taken me some days of development. You have to analyze the HTML source pages from the login page to GET and PUT the right responses for username ...


2

You are using hostapd to create an access point together with wpa_supplicant to connect as client to your home router. This can be done with the build in wifi device. It is known that the device can only use one frequency so hostapd will always use the frequency with that wpa_supplicant is connected to the home router. hostapd is configured in /etc/hostapd/...


2

This should display the Mac addresses and associated IP addresses. ip neigh show dev wlan0


2

I've resolved by myself, I have made a script in bash that restart the hostapd service with #!/bin/bash service hostapd restart and make it executable with sudo chmod +x /location/file then used sudo visudo and make the file executable without asking for password, adding in the file [your_username] ALL= NOPASSWD: /location/of/file went in ...


2

You can get info about the interface from the access point with: rpi ~$ sudo iw dev wlan0 info Interface wlan0 ifindex 3 wdev 0x1 addr b8:27:eb:06:e8:8b ssid RPiNet type AP wiphy 0 channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz txpower 31.00 dBm rpi ~$ The last line give you the ...


2

UPDATE: The answer below is obsolete. At the time I answered it, I don't realized that mode IBSS is the implementation of an ad-hoc network. Look at How to setup an unprotected Ad Hoc (IBSS) Network and if possible with WPA encryption?. OBSOLETE I don't know what page you are followed to setup your network. There is no link. Is it specific for a Raspberry ...


2

There is two part of your questions. Viewing data and sending data. First, there is much easier way to setup Rpi as access point. You script from the following link. Link: https://www.youtube.com/watch?v=RvOyafQeOoY&t=134s Now coming back to viewing your data part. I would prefer either wireshark or tcpdump tools on Rpi. Link: https://www.wireshark....


2

From your download tests there seems only one possibility to be left over. The ip forwarding between wlan0 and wlan1 could be limited. You are using a Raspberry Pi 1 model B. This is one of the first models ever. There are newer models with more performance. It has no wifi chip on board so you use two USB to wifi dongle for your wireless networks. Both ...


2

Based on the answer by Ingo, I went and made a script to do this job. https://github.com/Autodrop3d/raspiApWlanScripts The gist is that there's one script to run that'll setup the Pi for reboot-less AP/STA switching and then there are helper scripts that'll actually do the switching for you.


2

You also asked: "Maybe you got even hints for a better solution in general." I prefer to use systemd-networkd because it has all in one. Using two USB/wifi dongle simplifies it a lot. So my hint is to look at Access point as WiFi repeater with additional WiFi-dongle. It does not fit exactly your needs but it should not be a big problem to adapt it to your ...


2

In case you want to save some hassle as mentioned by Milliways. I suggested a short way. Command for installing RaspAP: wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap Default SSID - raspi-webgui Default Wifi Password - ChangeMe Default Login: user - admin passwd - secret Reference: https://www.youtube.com/watch?v=RvOyafQeOoY&...


2

Seems there are to many components that have to play together: dhcpcd, ifupdown, hostapd and maybe dnsmasq and bridge-utils. I have a suggestion to reduce complexity with using systemd-networkd. It is available by default on Raspbian and has everything built-in, no need to install any additional helpers. Here is a setup with a bridge that I have tested for ...


2

There's (2) parts to your question, so I'll answer each in turn: How does an Access Point Work? Since I actually wrote "pi-ap"- a Github repo which automates the configuration of a Pi into a WiFi Access Point- I'm in a good position to detail the inner workings of an AP. In a nutshell: An AP- in this case your Pi- has a radio in it through which it ...


2

Setting up an Access point as WiFi router/repeater is not a problem. The problem is the user to login with credentials. I suppose this is done with the internet browser on a login page. You can script this login but there is no standard login procedure. Every site has its own procedure so you have to script every login separately. And it is not a simple ...


2

From the /etc/hostapd/hostapd.conf file you should remove these lines: wpa=2 wpa_passphrase=*************** wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP And should be done with that.


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