17

━━━ 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 ...


12

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. The Raspberry Pi is able to work as ...


6

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 ...


5

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 ...


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 ...


5

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 ...


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

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-...


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

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, ...


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 ...


2

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


2

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


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

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

I don't know what page you are followed to setup your network. There is no link. Is it specific for a Raspberry Pi? This is unlikely because a RPi 3B/3B+ does not support mode ad-hoc so you cannot set it. The modes supported by the Raspi are: Supported interface modes: * IBSS * managed * AP * P2P-client * P2P-GO ...


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

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

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 ...


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&...


1

This answer is based on the Foundation tutorial Setting up a Raspberry Pi as an access point in a standalone network (NAT) If no networks can be found (by dhcpcd) the "Fallback Profile" is used to set a Static IP Address (and disable WiFi gateway). This enables the Pi to be accessed headlessly by WiFi - which is handy when travelling without keyboard, ...


1

An Access Point is NOT a router. See Using the Raspberry Pi as an access point to share an internet connection (bridge) in Access Point Adding an Access Point to an existing network just adds complication, and a normal network does not need one. If you do implement an Access Point DO NOT implement a DHCP server - use the server on your router - thus all ...


1

I would check to see if it's connecting to your wifi network. You can go to your router admin page and view a list of clients. If the device is listed there then you could try connect using the listed IP as well as the host name raspberrypi.local I usually connect with ssh pi@raspberrypi.local Default password is "raspberry" But likely it's not ...


1

It looks like you can do it without using iptables by using a hostapd configuration option # Network Authentication Type # This parameter indicates what type of network authentication is used in the # network. # format: <network auth type indicator (1-octet hex str)> [redirect URL] # Network Authentication Type Indicator values: # 00 = Acceptance of ...


1

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.


1

To exchange data between two (or more) devices you need a program on both sides. There are many possibilities to do it but it is to broad to explain them in detail here. But I will tell some general examples to give an idea. First of all: to connect to other devices on a network you do not use mac addresses but instead ip addresses. With ip neigh show (or ...


1

A Raspberry Pi with a built-in wifi device is able to work as access point and at the same time to connect to another remote access point as client. But the wifi driver has some quirks that make it a bit complicated to achieve this. For a solution with systemd-networkd you can look at Access point as WiFi repeater, optional with bridge.


1

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 ...


1

WiFi: I assume you use hostapd for creating the access point. To the best of my knowledge, I do not know a command line interface for hostapd to change the channel number, i.e. the frequency. So you need to change the configuration file and then restart the hostapd service. Nevertheless, you can do this quickly from the command line, e.g. by this sequence ...


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