35

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


31

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


10

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


10

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


10

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


5

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


5

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

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

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

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


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

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.


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


3

You could also try this tutorial: Start with a clean install of the latest release of Raspbian (currently Buster). Raspbian Buster Lite is recommended. Update Raspbian, including the kernel and firmware, followed by a reboot: sudo apt-get update sudo apt-get dist-upgrade sudo reboot Set the WiFi country in raspi-config’s Localisation Options: sudo raspi-...


3

Ubuntu Server uses Netplan to manage its connections. To create an access point using Netplan, you can do the following: 1. Install Network Manager sudo apt update sudo apt install network-manager 2. Disable cloud-init sudo bash -c "echo 'network: {config: disabled}' > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg" 3. Create a Netplan ...


3

Find your Raspberry pi ip address for the access point. Pass it in instead of localhost.


3

I would like to access the localhost in the browser of my phone No, you don't. Although it is theoretically possible, it is most certainly not what you want. What you want is to access your node.js application from your phone. A network drawing will make this more clear. +-----------+ +----------+ localhost| | ...


3

The built-in WiFi device on a Raspberry Pi is limited to create only one access point. To have a second access point for a guest network you need an additional USB/WiFi dongle. All other access issues are then only routing settings. To have a wired connection to the additional guest network you also need a second USB dongle with an ethernet RJ45 port of ...


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