33

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


27

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


9

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


9

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


9

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


7

An even EASIER way of setting up a Raspberry Pi as an AP is to use the pi-ap Github repo which automates configuration of a Pi 3B+/4 into an AP. Connect the Pi to a free port in your Internet-connected router which has DHCP enabled (probably the case in most consumer routers). Once connected, SSH into Pi on the DHCP assigned IP assigned to eth0 by router ...


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

First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained here: # deinstall classic networking sudo -Es # if not already done apt --autoremove purge ifupdown dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog apt-mark hold ifupdown dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog raspberrypi-net-mods ...


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

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

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


4

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


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


4

You like to replace the OpenVPN server from my example (1) with Wireguard as shown on the schema in the question. You also want to have a bridged virtual private network to have both remote private subnets in one broadcast domain like as they were just on one local place, e.g. your home network. First a summary what's possible or not: Wireguard does not ...


4

If you are open to use another modern all-in-one networking environment without needing additional helpers like hostapd, dnsmasq or bridge utils you can use systemd-networkd. It makes life easier. It is part of the default Raspbian image and you only have to enable and configure it. Here is a tested and working setup for what you want to do: Configuring ...


3

Follow the instruction: 1. Config the RPi as a Wifi Access point or a Wifi Hotspot sudo apt-get -y install hostapd dnsmasq nano /etc/hostapd/hostapd.conf Add the config below to the hostapd.conf file: interface=wlan0 driver=nl80211 ssid=MyPiAP hw_mode=g channel=6 ieee80211n=1 wmm_enabled=1 ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] macaddr_acl=0 ...


3

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


3

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


3

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


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

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


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

I know the OP is almost one year old but I found the OP very interesting and did some research. The Raspberry PI 3B+ uses Cypress SoC CYW43455 for wifi and Bluetooth. The specs of the SoC are impressive but as XTL mentioned earlier this chipset does not support real simultaneous dual-band (RSDB). This is confirmed on this post in Cypress Developer Community. ...


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

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

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

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

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


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