Thank you very much for this good tutorial. Everything worked flawless for me, even when the Pi doesn't have ethernet connection it still works. Can definitely recommend this for the Raspberry Pi 4 B
Hi I like to understand " ...even when the Pi doesn't have ethernet connection it still work..." when you didn't have ethernet connected, then how were you accessing internet? Basically, I am trying to setup where I want Pi to connect to internet via wi-fi enabled hotsport and have another device connect to Pi to go to internet.
@@be-cyber Yes, and I think with help of one of my friend and this video we got it working. th-cam.com/video/gdtkHZtfsbw/w-d-xo.html. Git Clone command didn't work for me in the video; so I downloaded setup-network.sh manually and ran it. Then we had to create vlan because I am using pre-build image of Pi for another purpose; which had wi-fi router turned on; which made it complicated.
@@be-cyber Finally the straight forward and easiest way to set an AP on raspberry pi is definitely RaspAP and its beautiful and convenient local settings through a webpage. Thank you however. I compared your modifications with theirs, just to learn more.
@Philibert Bon, exactly. There are several good alternatives, but learning everything from scratch has a lot of benefits. Thanks for the recommendation.
This is a very nice video. I'm currently wanting to create a blynk server on a raspberry pi with an integrated access point for ESP8266. The blynk server is already running and i'm going to setup the access point in a few days.
Cool! could this work if I wanted the raspberry to just be connected to a local network? I mean, the Rpi would be the accesspoint, I'd connect to it, and interact with it wihout the necesity to use internet? Or would that be a different thing to do?
Hello this is a great video, I am a beginner in this, I have installed this application to my Pi, at the same time on the PI is wireguard installed, when I connect to PI wireless true my mobile I receive the message "connected but no internet" can you help me with that? Maybe it is a setting in wireless access point DNS? Thanks for your feedback, Al
This is prefect, thanks so much for making it easy! I have the AP setup and its working as I needed it to. I have another wifi dongle attached to the Pi4 via USB. Before doing this process it was working once I had the drivers installed (realtek RTL8812BU). After installing the drivers I have my WLAN0 and WLAN1 interfaces. Once I got WLAN0 as an AP I can't figure out how to get WLAN1 up and running back again. I get a country code not set issue any trying to use the GUI Interface to set it gives me an error around cant find the WPA Supplicant file. I'm sure the issues is somewhere in the DHCPCD or WPA_Supplicant file but I have no idea where to start. Thanks for any help you can give.
Hi, thanks for the comment. Did you check the hostapd file (05:35 in the video)? The first option is the hostapd is the country code. You might also want to check the firewall and allow wlan1 to work as you want.
Great Video! But I have 1 questions: 1. Does it work when I have a ssh connection to it, because last time I tried this I couldn't connect to it anymore
Hello, thanks for your question. That happened to me too. When setting up the raspberry pi and setting up the firewall rules (iptables) you need to allow port 22 for SSH before exiting the pi after the installation is done. Otherwise you need to connect it to screen and enable SSH.
It shouldn't really matter because they are different services. Though you need to make sure that no service is being blocked or affected by any other service (like ports are enabled and no interface is being used by only one service). Also I'm not actually sure that a Raspberry Pi could handle all these services at the same time (maybe pi 4 with 4 gigs of RAM could, but I'm not sure). Hope this helps.
Thank you! I was first scared when it didn't work. At the end, I still managed to make it work, because I had a lot of typing errors. (Also, you had a typing error at 3:52, it says "eth0", not "eht0".) But one weird thing I realised: I could connect my phone with my raspberry pi access point successfully, but my raspberry pi said that it found no wireless devices. Not sure, if the device was connected or not (hopefully yes).
Hello Florian, Thank you for your comment. That's correct, all the settings and commands are really case sensitive. I tried to tell the viewers about my typing error through the caption :), but it's probably not very visible to all the viewers. If you get internet connection when connected to the Raspberry Pi, then don't worry about it not showing the wireless devices.
hi, thank you for this. Followed it and works great. I have one question though. When i did what u said, it works fine. Post that i installed expressvpn and connected to a US server. As soon as i do that, my internet stops to work. On the pi and client. can u pls guide me. thanks again
Great ! Is it also possible to use same wifi interface as AP and client ? Oti have to hook another usb wifi dongle in pi board and use one as AP n other as clients? I want to install a dedicated pi in my car and get internet distributed to my car music system and dashcam (I made it using pi zero). To pi I will give internet from my mobile hotspot.
Hello @Wondrous Explorer, yes you need to use two different wifi interfaces. You need to make sure that one wifi interface is connected to the hotspot and then forward the internet to the other interface. That would be a good idea.
Thank you for the video. I set it up the way you showed. Yesterday it was working. Today it works but as soon as I connect my Smartphone to the Pi WLAN the entire connection crashes and the Pi shows "dhcpcd not running" when hovering above the internet symbol. Any advice on how to fix this?
Hello @Maximilian Mews, I think that you should check the file "dhcpcd.conf" for any extra spaces or wrong letters. You can also check the other ".conf" files to make sure that everything is written correctly.
[newbie:RaspberryPi Zero W] Does this work using samba too? I tried but maybe I did something wrong, the SSID dont show and the rpi cannot automatically connect to wifi
Any chance you can create a walk through of installing Raspberry Pi OS Bullseye, set up as wireless AP, and lastly configuring TOR? Doing searches results in pretty much zero so I suspect it would be a hit :)
I think I understood the video and entered all of your instructions into the PI as I followed the video on a iMac. I also had the video text up in the browser on the PI up so I could copy the instructions that follow the video into the terminal window on the PI. I started the install with a new SD and OS showing my WiFi. After the install as per your instructions, I no longer have the WiFi icon and have the arrow up and arrow down icon for the ethernet connection and selecting this icon says "No wireless interfaces found". My cell phone and iMac do not show the WiFi ssid i had coded as you instructed in the video. When I copied from your text, I could have copied the blank following the instructions and don't know if that could be a problem. Can you offer a hint as to where I might look to be able to fix this so I can have an Access Point on my PI. Thank you
Hello @Dan Levine, I used to get this problem sometimes, the best thing to do is to check all the ".conf" files for any extra spaces or things like that, because any space or wrong letter will cause this problem.
Sorry I'm not a network expert, but what you setup looks more to be a WiFi extender not an Access Point. The difference being a extender will have a different name for the SSID and all AP's will have one SSID name. So if your main router/WiFi has Home1 and the RP has Home2 as the SSID name then it is a extender. What I'm looking for is to have one SSID name show up on the mobile devices, but have multiple WiFi receivers in the house.
Hello @Sam Rogers, I think that you can use this tutorial: www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-bridged-wireless-access-point
Hello, thank you for the tutorial. But I have problem, at minutes 2:08 (in the video). At command line sudo DEBIAN_FRONTED=noninteractive apt-install -y netfilter-presistent iptables-presistent. And then the line appears like this. E : unable to locate package netfilter-presistent & E : unable to locate package iptables-presistent. This is not the same like in the video. Can you help me with that? Thank you
Hello @I Dewa Gde Deni Krisna Setiawan I8IO2O9O, is your system old or modified? Try to update it (sudo apt-get update) and then try again. The default settings of the raspberry pi should be able to find this package. If it didn't work, please try this command and reply back with the result: sudo apt-cache search netfilter Thank you.
@@be-cyber Thank you for the reply, i appreciate it. I think I've been updating my system earlier. But i will do it again. And I'm gonna try the command that you have been mention. I will tell you the results later ASAP.
Hello! Would this work if I was not wanting to connect to the actual internet, but to just connect my phone to the raspberry pi 4B via VNC viewer? I am needing something to serve as an access point between the two devices so that I can transmit controls for a robot and don’t want to pay extra for a router for WLAN and will not have actual internet service where the robot is operating. Just curious! Thanks
Hello @JC WILLIAMS, thank you for your question. Yes, this can work like that. You might want to skip the part of the iptables or allowing internet access from ethernet to wifi and just make it an access point. Hope this helps.
Here is what I am trying to do. I am pilot and I am using Pi in the plane for my flying with another software. What I want is the following setup. 1. Enable Pi to connect to my 4G LTE Wi-Fi router/modem that is broadcasting SSID which will provide internet while I am in the air 2. Enable Pi to allow my tablet to connect to Pi so I can use the mapping software installed in the Pi and has internet access via tethered 4G/LTE device wirelessly. I have step 2 working where I am able to connect my tablet to Pi and have access to the mapping software; But, I need Pi to connect to 4G-LTE router/modem for internet access. That I cannot figure out how to configure.
Hello @Sanjay Patel, if your 4g modem has an ethernet port, you can simply connect the PI to the 4g modem and then it will take the internet from the modem and act as a router. Is this what are you trying to do? If not, please repley to my comment.
Hi! Thank you for this incredibly helpful video!! I got the access point showing on other devices and can connect to it, but there's no internet connection. The ethernet port light on the router is green, but on the Raspberry there's a single yellow light where the ethernet cable is connected. I have a Raspberry Pi 3 B+. Any ideas what might be the cause and/or the fix to having no internet connection via the access point?
@@googlyeyes3237 I ended up following Raspberry Pi's own documentation on their site: Configuration -> Setting up a Routed Wireless Access Point. I got it working with those instructions :) Apparently the light being yellow in 3 B+ just means the connection is faster than if the light was green. Hope you get it working :) Good luck!
Hello @boombapboom, RaspAP has more features and is probably easier to install, this one is less advanced, but you can learn more because you are doing everything on your own without a lot of help :)
Hey Bcyber, great video. I'm looking to do something similar where the Pi broadcasts an SSID and then a Phone is used to attach to that SSID in Settings, then on the Phone a custom Application is opened which allows the Phone user to browse and select their home WiFi network's SSID and enter a password. This information is saved to the Pi and after a reboot it will automatically connect to the users home WiFi from that day forward. Have you seen a script for doing something like this? Thank you!
Hello @Ken Elkern, I did that once using Python and some OS libraries, but I used the Raspberry Pi with screen and keyboard(in order for the user to type the password). I have no idea about how to make an app for it, but you might be able to broadcast a simple web-server which communicates with the Pi's system to change the password. Hope this helps :)
So for some reason my pi won’t let me run the masquerade command, in the firewall rule section of the video everything else worked great but I can’t get it to work and I think it’s bc of that one, would make sense why it wouldn’t let it work, but not sure how to fix this problem
@Dumb Info do you have any other services that might cause any conflict? If you have an extra SD card, you can try to install a new system and see if it will work
@@be-cyber yeah so I started off with a fresh SD card and Fresh raspberry lite, just as you did, but I never put in my network, and I had it plugged into either net the whole time, is this a issue? I’ve double checked all the files, and can’t seem to find a problem, but I think I will start from the start again just not hook up to the WiFi/Ethernet until everything is completed,
Hi i followed your video, no errors or anything but i cant find the network name ssid in the wifi list i dont know what i am doing wrong i have check all the conf files all is correct. Could it maybe be because the country code i selected is GB but i live in another country could that be the error ?.
Hello and thank you for the tutorial. I have managed to set up an access point, but the RPi that is the access point cannot connect to my wifi, it says No wireless interfaces found. And when I am connecting to my access point RPi from another RPi I dont have an internet connection
Hello @Saef Jasem, you can't connect the raspberry pi that is the access point to the wifi, because the wifi interface is being used by the access point. You need to connect the raspberry pi that is the access point to internet via an Ethernet cable. Hope this helps :)
@@be-cyber Is there a way to boot the pi without being an access point? I am trying to run a pi with a sensor that contacts a server. The issue is if I move locations I don't want to need to attach a monitor and etc to connect to wifi. My strategy is if the pi boots without wifi it creates an access point and runs a flask server where I can input an SSID and password .The pi appends this to the wpa_supplicant.conf then reboots. But as you say it cannot connect to wifi while it is an access point. Is it possible to revert through some sort of script?
Hello @@0xLoneWolf, there are different ways to do that. The way that I'm familiar with is using rc.local file and using python. You can write a python code that executes what you want (example, using OS library) and then add the python code to rc.local file and you are ready to go.
I have a question I’m new to messing with Linux/Raspian, I want to use this process to use my RP 3+ as a network bridge if you will... wifi to Ethernet to my PC, as a solution for not having space for a wifi card and running an Ethernet cable around my house is no option. Is this the right process, if so how does setting the IP work because I have different IP addresses and not sure how to set it correctly.
Hello Jimmy, I didn't understand your question completely, but I don't think that this is what you are looking for, because this is a routed access point. There is other documentation on raspberry pi website to set up a bridged network(extending ethernet to wireless clients) and in this tutorial you won't have to deal with IP adresses because you are just extending your network. My tutorial is more about how to make an access point that can handle requests with it is own rules and own IP adresses (like a router). I hope that you would be able to find what you are looking for. If you have any other questions, please leave a comment.
@@be-cyber Thank you for not destroying my noob ass lol, but your video is well documented on each steps you did nice video ! i did eventually find what i needed lol the process was much shorter.
Hi , i use computer and wifi adapter which i use to create access point so i have wlan0 and wlan1 , wlan1 creates access point but the client (my phone) get no internet when connected . Any idea ?
Hello @karims M, if you are able to connect to the access point, then there is no problem with the interfaces(wlan0 and wlan1). The reason is probably the IPtables(make sure that the command is executed the right way with the right interfaces). Did you check the country code too?
@@be-cyber Thank you for replying im depressed of the errors i get each time . I ve heard i have to use br0 bridge interface so i can forward traffic from port to another . One other thing i can't use my adapter in master mode . i use canakit wifi adapter .
@karims M, sorry to hear that. Sometimes it's really frustrating to work with the PI, I don't know exactly which part isn't working with you, but in general you need to do each step very carfully (esecially new lines and spaces). I don't think that you really need to use a bridge, the PI should be able to do that for you using the IPTables. Try it and let me know what happens, if you have any other question, reply to this comment and I will do my best to help you.
Good tutorial! But I have a problem, I've followed you, the official guide and several others and for the life of me I can't get it to work. I have no idea whats wrong...
Hello @Corqable, did you get any errors or it didn't show up in the wifi list? A lot of my friends had the same problem and it was one of the following: 1- wrong country code. 2- Wrong Raspbian OS settings. 3- Tiny language mistakes in the configuration files. 4- Other service that conflict with one of the access point's services. Please let me know what kind of error did you get.
@@be-cyber Correct country code, settings seems correct as well. Double checked for spelling. I do think your fourth point might be the case. From what I can tell dnsmasq is active and running but the hostapd get status active (exited). Oh and thanks for the reply!!!
No problem. Yeah this means that there is something wrong in the configuration. Check the hostapd configuration file. If it didn't work out reply to my comment and I will further help you 🕵️♂️
Check the step with sudo iptables ... I think there is a typo in the command with the LAN interface. He typed "eht0" where I think it should be "eth0" (at 3'54 )
question - Will the hotspot still allow communications between the pi and a device attached to it if there is no WAN side connection on the PI? I am building a remote tether for a camera using a Pi zero with gphoto2 installed and I need to connect to my Windows 10 PC. Right now, I create a hotspot on the Windows machine and connect to it with the Pi, but I would like to do it the other way around.
Hello Edward, the WAN is no problem, because in this method the PI will act as a router(with or without internet connection). If you are going to connect to the Raspberry Pi only using the wifi, you won't face any problems, but if you are going to use other protocols, I wouldn't recommend using the same Rasperry Pi, because sometimes the protocols conflict with each other.
@@be-cyber thanks for the quick reply. This pi has only one job - grab new photos from my camera and stick them in a shared drive. I will probably have to update my python script to make sure that the pc has connected to the hotspot and shared the drive before I mount it in the pi - but that should not be too hard. I use samba and the cifs protocol to connect to the shared drive but that should work over the hotspot - I think. I made a video on the project if you are interested - th-cam.com/video/Wxy9kpv1xFg/w-d-xo.html
When I edit dhcpd.conf with nano, th-cam.com/video/S4E35d91Xss/w-d-xo.html there's an alert "unbound key" when I try to type wlan0. What's the problem? I'm on an ethernet link and I never had to set the wifi connection.
Can someone confirm the maximum number of clients that could connect to the pi4b 8GB wireless access point? I am able to connect Upto 5 devices. Beyond that, the 6th device onwards see the network and enter the password but are refused connection by access point and show a message, “unable to join the network”.
Hello @Kamesh, technically it should be able to do that. Do you get any error? The wifi itself might be the problem, if you have any usb wifi stick, you can try to use it instead of the PI wifi, but PI4B is even faster than the PI3B which is why I don't think that it has something to do with the PI not being able to handle all these clients.
Hello @M Dsquared, your raspberry pi isn't detecting wifi networks because its interface is used as an access point. It's a little bit complicated to undo the change, it's easier to install a new system.
how can you make the raspberry pi a wireless access point that doesn't forward anything from a router? i just want to make it into a LAN, connectable wirelessly via wifi
Hello @Maxwell Pauly, you can do that by skipping the part where you enable IPv4 forwarding in /etc/sysctl.d/routed-ap.conf and you also won't need to set the IPtables rule which is: "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE". In my video you can skip from 3:27 until 4:22.
Hello @sumit kumar, the pi sould have two interfaces. There is a version of raspberry pi zero that has wifi, but still there is no ethernet. You can either add another wifi interface(wlan 1) or add ethernet interface.
Hello @Evan Tzavragos, I don't have Discord for this channel yet, but I would appreciate it if you can write a comment with the problem. That will be faster of both of us.
Many many thanks for your titorial! very informative! it worked out for me)
Thank you very much for this good tutorial. Everything worked flawless for me, even when the Pi doesn't have ethernet connection it still works. Can definitely recommend this for the Raspberry Pi 4 B
Hello @Tabris H thanks a lot, I really appreciate it.
Hi I like to understand " ...even when the Pi doesn't have ethernet connection it still work..." when you didn't have ethernet connected, then how were you accessing internet? Basically, I am trying to setup where I want Pi to connect to internet via wi-fi enabled hotsport and have another device connect to Pi to go to internet.
Hello @Sanjay Patel, do you mean that you want to connect your PI to wifi hotspot instead of ethernet port?
@@be-cyber Yes, and I think with help of one of my friend and this video we got it working. th-cam.com/video/gdtkHZtfsbw/w-d-xo.html. Git Clone command didn't work for me in the video; so I downloaded setup-network.sh manually and ran it. Then we had to create vlan because I am using pre-build image of Pi for another purpose; which had wi-fi router turned on; which made it complicated.
Great job :), yes it is really complicated.
Thank you for good tutorial. Everything working like warm knife through butter :) Stay safe.
Thank you so much :)
Man! thank you very much! You save my day! helpful and instructive!🤓🙏🙏🙏🙏🙏
Glad to hear that :)
@@be-cyber Finally the straight forward and easiest way to set an AP on raspberry pi is definitely RaspAP and its beautiful and convenient local settings through a webpage. Thank you however. I compared your modifications with theirs, just to learn more.
@Philibert Bon, exactly. There are several good alternatives, but learning everything from scratch has a lot of benefits. Thanks for the recommendation.
Thank you, Mr.
This is a very nice video. I'm currently wanting to create a blynk server on a raspberry pi with an integrated access point for ESP8266.
The blynk server is already running and i'm going to setup the access point in a few days.
That's great :), the ESP8266 is very handy. I'm currently using it for some experiments.
Hi. Thank you so much for this tutorial.
Can I use CentOS Minimal for this?
Thank you for this very informative video. But can you do also a video tutorial on adding customize captive portal like in malls, gyms, etc??
Cool! could this work if I wanted the raspberry to just be connected to a local network? I mean, the Rpi would be the accesspoint, I'd connect to it, and interact with it wihout the necesity to use internet? Or would that be a different thing to do?
Nice, tutorial !
Thank you :)
Hello this is a great video, I am a beginner in this, I have installed this application to my Pi, at the same time on the PI is wireguard installed, when I connect to PI wireless true my mobile I receive the message "connected but no internet" can you help me with that? Maybe it is a setting in wireless access point DNS?
Thanks for your feedback, Al
Does this make the raspberry pi a wireless access point regardless of the operating system that's installed on it?
Hello thanks for this tutorial
Can you help me that ALL internet connection go true a VPN
Thanks
Awesome
This is prefect, thanks so much for making it easy! I have the AP setup and its working as I needed it to. I have another wifi dongle attached to the Pi4 via USB. Before doing this process it was working once I had the drivers installed (realtek RTL8812BU). After installing the drivers I have my WLAN0 and WLAN1 interfaces. Once I got WLAN0 as an AP I can't figure out how to get WLAN1 up and running back again. I get a country code not set issue any trying to use the GUI Interface to set it gives me an error around cant find the WPA Supplicant file. I'm sure the issues is somewhere in the DHCPCD or WPA_Supplicant file but I have no idea where to start. Thanks for any help you can give.
Hi, thanks for the comment. Did you check the hostapd file (05:35 in the video)? The first option is the hostapd is the country code. You might also want to check the firewall and allow wlan1 to work as you want.
Great Video!
But I have 1 questions:
1. Does it work when I have a ssh connection to it, because last time I tried this I couldn't connect to it anymore
Hello, thanks for your question. That happened to me too. When setting up the raspberry pi and setting up the firewall rules (iptables) you need to allow port 22 for SSH before exiting the pi after the installation is done. Otherwise you need to connect it to screen and enable SSH.
@@be-cyber What if I have Pi-Hole and PiVPN installed
It shouldn't really matter because they are different services. Though you need to make sure that no service is being blocked or affected by any other service (like ports are enabled and no interface is being used by only one service). Also I'm not actually sure that a Raspberry Pi could handle all these services at the same time (maybe pi 4 with 4 gigs of RAM could, but I'm not sure). Hope this helps.
@@be-cyber i have 8gigs of ram so it should work
Thank you! I was first scared when it didn't work. At the end, I still managed to make it work, because I had a lot of typing errors. (Also, you had a typing error at 3:52, it says "eth0", not "eht0".)
But one weird thing I realised: I could connect my phone with my raspberry pi access point successfully, but my raspberry pi said that it found no wireless devices. Not sure, if the device was connected or not (hopefully yes).
Hello Florian, Thank you for your comment. That's correct, all the settings and commands are really case sensitive. I tried to tell the viewers about my typing error through the caption :), but it's probably not very visible to all the viewers.
If you get internet connection when connected to the Raspberry Pi, then don't worry about it not showing the wireless devices.
please tutorial of access point gpio pins!!!!!
hi, thank you for this. Followed it and works great. I have one question though. When i did what u said, it works fine. Post that i installed expressvpn and connected to a US server. As soon as i do that, my internet stops to work. On the pi and client. can u pls guide me. thanks again
Great ! Is it also possible to use same wifi interface as AP and client ? Oti have to hook another usb wifi dongle in pi board and use one as AP n other as clients?
I want to install a dedicated pi in my car and get internet distributed to my car music system and dashcam (I made it using pi zero).
To pi I will give internet from my mobile hotspot.
Hello @Wondrous Explorer, yes you need to use two different wifi interfaces. You need to make sure that one wifi interface is connected to the hotspot and then forward the internet to the other interface.
That would be a good idea.
@@be-cyber thanks
Thank you for the video. I set it up the way you showed. Yesterday it was working. Today it works but as soon as I connect my Smartphone to the Pi WLAN the entire connection crashes and the Pi shows "dhcpcd not running" when hovering above the internet symbol. Any advice on how to fix this?
Hello @Maximilian Mews, I think that you should check the file "dhcpcd.conf" for any extra spaces or wrong letters. You can also check the other ".conf" files to make sure that everything is written correctly.
[newbie:RaspberryPi Zero W]
Does this work using samba too?
I tried but maybe I did something wrong, the SSID dont show and the rpi cannot automatically connect to wifi
when I write "sudo apt install hostapd" i get error saying failed to fetch ...what should I do ?
Any chance you can create a walk through of installing Raspberry Pi OS Bullseye, set up as wireless AP, and lastly configuring TOR? Doing searches results in pretty much zero so I suspect it would be a hit :)
Hello @audidiablo, I will look into it and try. Thanks for the suggestion ;)
I think I understood the video and entered all of your instructions into the PI as I followed the video on a iMac. I also had the video text up in the browser on the PI up so I could copy the instructions that follow the video into the terminal window on the PI. I started the install with a new SD and OS showing my WiFi. After the install as per your instructions, I no longer have the WiFi icon and have the arrow up and arrow down icon for the ethernet connection and selecting this icon says "No wireless interfaces found". My cell phone and iMac do not show the WiFi ssid i had coded as you instructed in the video. When I copied from your text, I could have copied the blank following the instructions and don't know if that could be a problem. Can you offer a hint as to where I might look to be able to fix this so I can have an Access Point on my PI. Thank you
Hello @Dan Levine, I used to get this problem sometimes, the best thing to do is to check all the ".conf" files for any extra spaces or things like that, because any space or wrong letter will cause this problem.
Sorry I'm not a network expert, but what you setup looks more to be a WiFi extender not an Access Point. The difference being a extender will have a different name for the SSID and all AP's will have one SSID name. So if your main router/WiFi has Home1 and the RP has Home2 as the SSID name then it is a extender. What I'm looking for is to have one SSID name show up on the mobile devices, but have multiple WiFi receivers in the house.
Hello @Sam Rogers, I think that you can use this tutorial: www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-bridged-wireless-access-point
Hello, thank you for the tutorial. But I have problem, at minutes 2:08 (in the video). At command line sudo DEBIAN_FRONTED=noninteractive apt-install -y netfilter-presistent iptables-presistent. And then the line appears like this. E : unable to locate package netfilter-presistent & E : unable to locate package iptables-presistent. This is not the same like in the video. Can you help me with that? Thank you
Hello @I Dewa Gde Deni Krisna Setiawan I8IO2O9O, is your system old or modified? Try to update it (sudo apt-get update) and then try again. The default settings of the raspberry pi should be able to find this package. If it didn't work, please try this command and reply back with the result: sudo apt-cache search netfilter
Thank you.
@@be-cyber Thank you for the reply, i appreciate it. I think I've been updating my system earlier. But i will do it again. And I'm gonna try the command that you have been mention. I will tell you the results later ASAP.
That's great. Thank you :)
Hello! Would this work if I was not wanting to connect to the actual internet, but to just connect my phone to the raspberry pi 4B via VNC viewer? I am needing something to serve as an access point between the two devices so that I can transmit controls for a robot and don’t want to pay extra for a router for WLAN and will not have actual internet service where the robot is operating. Just curious! Thanks
Hello @JC WILLIAMS, thank you for your question. Yes, this can work like that. You might want to skip the part of the iptables or allowing internet access from ethernet to wifi and just make it an access point. Hope this helps.
Here is what I am trying to do. I am pilot and I am using Pi in the plane for my flying with another software. What I want is the following setup.
1. Enable Pi to connect to my 4G LTE Wi-Fi router/modem that is broadcasting SSID which will provide internet while I am in the air
2. Enable Pi to allow my tablet to connect to Pi so I can use the mapping software installed in the Pi and has internet access via tethered 4G/LTE device wirelessly.
I have step 2 working where I am able to connect my tablet to Pi and have access to the mapping software; But, I need Pi to connect to 4G-LTE router/modem for internet access. That I cannot figure out how to configure.
Hello @Sanjay Patel, if your 4g modem has an ethernet port, you can simply connect the PI to the 4g modem and then it will take the internet from the modem and act as a router. Is this what are you trying to do? If not, please repley to my comment.
@@be-cyber Thanks. I was able to connect using ethernet. But, I wanted to connect using Wi-Fi and I think we got it. See above reply.
Hi! Thank you for this incredibly helpful video!! I got the access point showing on other devices and can connect to it, but there's no internet connection. The ethernet port light on the router is green, but on the Raspberry there's a single yellow light where the ethernet cable is connected. I have a Raspberry Pi 3 B+. Any ideas what might be the cause and/or the fix to having no internet connection via the access point?
Im using same raspberry pi 3b+, even im haing the no internet issue. U got any solutions ?
@@googlyeyes3237 I ended up following Raspberry Pi's own documentation on their site: Configuration -> Setting up a Routed Wireless Access Point. I got it working with those instructions :)
Apparently the light being yellow in 3 B+ just means the connection is faster than if the light was green.
Hope you get it working :) Good luck!
@@laurihei thanks for replying, I will look into that documentation for sure!
I followed the instructions exactly as shown. After rebooting, I don't see the access point, am I missing something?
very interesting; how does this compare to RaspAP?
Hello @boombapboom, RaspAP has more features and is probably easier to install, this one is less advanced, but you can learn more because you are doing everything on your own without a lot of help :)
Hey Bcyber, great video. I'm looking to do something similar where the Pi broadcasts an SSID and then a Phone is used to attach to that SSID in Settings, then on the Phone a custom Application is opened which allows the Phone user to browse and select their home WiFi network's SSID and enter a password. This information is saved to the Pi and after a reboot it will automatically connect to the users home WiFi from that day forward. Have you seen a script for doing something like this? Thank you!
Hello @Ken Elkern, I did that once using Python and some OS libraries, but I used the Raspberry Pi with screen and keyboard(in order for the user to type the password). I have no idea about how to make an app for it, but you might be able to broadcast a simple web-server which communicates with the Pi's system to change the password. Hope this helps :)
So for some reason my pi won’t let me run the masquerade command, in the firewall rule section of the video everything else worked great but I can’t get it to work and I think it’s bc of that one, would make sense why it wouldn’t let it work, but not sure how to fix this problem
@Dumb Info do you have any other services that might cause any conflict? If you have an extra SD card, you can try to install a new system and see if it will work
@@be-cyber yeah so I started off with a fresh SD card and Fresh raspberry lite, just as you did, but I never put in my network, and I had it plugged into either net the whole time, is this a issue? I’ve double checked all the files, and can’t seem to find a problem, but I think I will start from the start again just not hook up to the WiFi/Ethernet until everything is completed,
Hi i followed your video, no errors or anything but i cant find the network name ssid in the wifi list i dont know what i am doing wrong i have check all the conf files all is correct. Could it maybe be because the country code i selected is GB but i live in another country could that be the error ?.
Hello @sara rara, that happened to me multiple times, the country code was the reason of the error. Try to change it and see if it will work.
Hello and thank you for the tutorial. I have managed to set up an access point, but the RPi that is the access point cannot connect to my wifi, it says No wireless interfaces found. And when I am connecting to my access point RPi from another RPi I dont have an internet connection
Hello @Saef Jasem, you can't connect the raspberry pi that is the access point to the wifi, because the wifi interface is being used by the access point. You need to connect the raspberry pi that is the access point to internet via an Ethernet cable. Hope this helps :)
@@be-cyber Yes, I eventually figured it out haha.. my bad. But thank you for your reply.
Sure, no problem :)
@@be-cyber Is there a way to boot the pi without being an access point? I am trying to run a pi with a sensor that contacts a server. The issue is if I move locations I don't want to need to attach a monitor and etc to connect to wifi. My strategy is if the pi boots without wifi it creates an access point and runs a flask server where I can input an SSID and password .The pi appends this to the wpa_supplicant.conf then reboots. But as you say it cannot connect to wifi while it is an access point. Is it possible to revert through some sort of script?
Hello @@0xLoneWolf, there are different ways to do that. The way that I'm familiar with is using rc.local file and using python. You can write a python code that executes what you want (example, using OS library) and then add the python code to rc.local file and you are ready to go.
Why it's not working with mine? I use raspberry 4😔
I have a question I’m new to messing with Linux/Raspian, I want to use this process to use my RP 3+ as a network bridge if you will... wifi to Ethernet to my PC, as a solution for not having space for a wifi card and running an Ethernet cable around my house is no option.
Is this the right process, if so how does setting the IP work because I have different IP addresses and not sure how to set it correctly.
Hello Jimmy, I didn't understand your question completely, but I don't think that this is what you are looking for, because this is a routed access point. There is other documentation on raspberry pi website to set up a bridged network(extending ethernet to wireless clients) and in this tutorial you won't have to deal with IP adresses because you are just extending your network. My tutorial is more about how to make an access point that can handle requests with it is own rules and own IP adresses (like a router). I hope that you would be able to find what you are looking for. If you have any other questions, please leave a comment.
@@be-cyber Thank you for not destroying my noob ass lol, but your video is well documented on each steps you did nice video ! i did eventually find what i needed lol the process was much shorter.
@@Jimmy-kt7mu do you have a link to the video? I'm trying to do the same thing, thanks!
@@SoundWave90 yo man I will try find it for you
@@Jimmy-kt7mu I appreciate you good sir.
Hi , i use computer and wifi adapter which i use to create access point so i have wlan0 and wlan1 , wlan1 creates access point but the client (my phone) get no internet when connected . Any idea ?
Hello @karims M, if you are able to connect to the access point, then there is no problem with the interfaces(wlan0 and wlan1). The reason is probably the IPtables(make sure that the command is executed the right way with the right interfaces). Did you check the country code too?
@@be-cyber Thank you for replying im depressed of the errors i get each time . I ve heard i have to use br0 bridge interface so i can forward traffic from port to another . One other thing i can't use my adapter in master mode . i use canakit wifi adapter .
@karims M, sorry to hear that. Sometimes it's really frustrating to work with the PI, I don't know exactly which part isn't working with you, but in general you need to do each step very carfully (esecially new lines and spaces). I don't think that you really need to use a bridge, the PI should be able to do that for you using the IPTables. Try it and let me know what happens, if you have any other question, reply to this comment and I will do my best to help you.
@@be-cyber i ve just fixed it man , the problem was dnsmasq configuration ! Dhcp range and gateway address were different . Im happy now 😆
Good tutorial! But I have a problem, I've followed you, the official guide and several others and for the life of me I can't get it to work. I have no idea whats wrong...
Hello @Corqable, did you get any errors or it didn't show up in the wifi list? A lot of my friends had the same problem and it was one of the following:
1- wrong country code.
2- Wrong Raspbian OS settings.
3- Tiny language mistakes in the configuration files.
4- Other service that conflict with one of the access point's services.
Please let me know what kind of error did you get.
@@be-cyber Correct country code, settings seems correct as well. Double checked for spelling. I do think your fourth point might be the case. From what I can tell dnsmasq is active and running but the hostapd get status active (exited). Oh and thanks for the reply!!!
No problem. Yeah this means that there is something wrong in the configuration. Check the hostapd configuration file. If it didn't work out reply to my comment and I will further help you 🕵️♂️
after i program the raspberry what will i do? shoul i connect it to my router or i will use broadband?
Hello @Gemma Estrada, You can now connect it to your router through an Ethernet cable (for example in the second floor and it will act as a router).
I followed it word for word and when it shows up and i can connect to it but it doesn't provide internet
Check the step with sudo iptables ... I think there is a typo in the command with the LAN interface. He typed "eht0" where I think it should be "eth0" (at 3'54 )
All of them is okey but when i try connect to WiFi i can't
Hi Akif, this might happen if there is any mistake with the letters and numbers, because this is very case sensitive.
question - Will the hotspot still allow communications between the pi and a device attached to it if there is no WAN side connection on the PI? I am building a remote tether for a camera using a Pi zero with gphoto2 installed and I need to connect to my Windows 10 PC. Right now, I create a hotspot on the Windows machine and connect to it with the Pi, but I would like to do it the other way around.
Hello Edward, the WAN is no problem, because in this method the PI will act as a router(with or without internet connection). If you are going to connect to the Raspberry Pi only using the wifi, you won't face any problems, but if you are going to use other protocols, I wouldn't recommend using the same Rasperry Pi, because sometimes the protocols conflict with each other.
@@be-cyber thanks for the quick reply. This pi has only one job - grab new photos from my camera and stick them in a shared drive. I will probably have to update my python script to make sure that the pc has connected to the hotspot and shared the drive before I mount it in the pi - but that should not be too hard. I use samba and the cifs protocol to connect to the shared drive but that should work over the hotspot - I think. I made a video on the project if you are interested - th-cam.com/video/Wxy9kpv1xFg/w-d-xo.html
@Edward Hartmann Yes, that should work. Thank you for the video, I'm going to watch it, because it would be great to know more about the subject :)
When I edit dhcpd.conf with nano, th-cam.com/video/S4E35d91Xss/w-d-xo.html there's an alert "unbound key" when I try to type wlan0. What's the problem? I'm on an ethernet link and I never had to set the wifi connection.
Hello @Philibert Bon, did you check that the wlan0 interface exist and that it's running?
What raspberry pi works best for this?
I'm using the PI 3 b+👍
Is Wifi-5 (802.11ac) doable with a Raspi?
Hello @TubeDupe, yeah Raspberry pi can run wifi 5.
Can someone confirm the maximum number of clients that could connect to the pi4b 8GB wireless access point? I am able to connect Upto 5 devices. Beyond that, the 6th device onwards see the network and enter the password but are refused connection by access point and show a message, “unable to join the network”.
Hello @Kamesh, technically it should be able to do that. Do you get any error?
The wifi itself might be the problem, if you have any usb wifi stick, you can try to use it instead of the PI wifi, but PI4B is even faster than the PI3B which is why I don't think that it has something to do with the PI not being able to handle all these clients.
is there a way to undo what ive done in this tutorial. My pi will no longer detect wifi networks near it
Hello @M Dsquared, your raspberry pi isn't detecting wifi networks because its interface is used as an access point. It's a little bit complicated to undo the change, it's easier to install a new system.
@@be-cyber I fixed it already it's not that complicated
how can you make the raspberry pi a wireless access point that doesn't forward anything from a router? i just want to make it into a LAN, connectable wirelessly via wifi
Hello @Maxwell Pauly, you can do that by skipping the part where you enable IPv4 forwarding in /etc/sysctl.d/routed-ap.conf and you also won't need to set the IPtables rule which is: "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE". In my video you can skip from 3:27 until 4:22.
@@be-cyber got it. that worked thanks!
To revert it, you can delete all the rules(flush all chains): sudo iptables -F
Will it work in raspberry pi zero w
Hello @sumit kumar, the pi sould have two interfaces. There is a version of raspberry pi zero that has wifi, but still there is no ethernet. You can either add another wifi interface(wlan 1) or add ethernet interface.
Sudo apt install hostapd no longer works. Is there a fix?
Hello @Brad Greenwood, You can try to reset your repository list, or install it directly as .deb file (pkgs.org/download/hostapd)
could you please help me! i need to get this done asap
Hello @Evan Tzavragos, no problem at all, what can I help you with? Did you watch the video?
@@be-cyber hi yes I did!, do you have a discord I could contact?
Hello @Evan Tzavragos, I don't have Discord for this channel yet, but I would appreciate it if you can write a comment with the problem. That will be faster of both of us.
@@be-cyberim unfortantly having trouble with setting it up, is it possible to talk privitly
?
I have just created a Discord server, you can join it using this link: discord.gg/2zW4vEwA
Does this work for raspberry pi 3 b+?
Hello @popx, sure. In the video I was making the access point using my Pi 3 b+
@@be-cyber thanks
Can I attack it using WiFi attacking tools??
Hello @DThorn, yes, you can.
@@be-cyber Working. Thank you very much
rpi 4 can do it right?
Hello @lukked kanokwan, yes it works on rpi 4 without any problem.
Specify the goal and need money