Setup your Raspberry Pi as wireless access point (Update!)

Описание к видео Setup your Raspberry Pi as wireless access point (Update!)

Hello guys, in this video I am going to show you how to set up your Raspberry Pi as a wireless access point.
I hope you enjoy the video, if you have any question or feedback, please leave a comment down below.



⌚️Timestamps:

0:00 | Introduction

0:55 | Installing the software

2:31 | Setting a static IP address

3:27 | Enabling the routing

3:45 | Firewall rule

4:23 | Configuring the DNSmasq

5:24 | Unblocking the wifi

5:33 | Configuring the Hostapd

7:03 | Testing the access point

7:38 | Thank you



💻The commands and settings used in the video:

sudo apt update

sudo apt upgrade

sudo apt install hostapd

sudo systemctl unmask hostapd

sudo systemctl enable hostapd

sudo apt install dnsmasq

sudo DEBIAN_FRONTEND=noninteractive apt install -y netfilter-persistent iptables-persistent

sudo nano /etc/dhcpcd.conf

interface wlan0

static ip_address=192.168.4.1/24

nohook wpa_supplicant

sudo nano /etc/sysctl.d/routed-ap.conf

net.ipv4.ip_forward=1



sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

sudo netfilter-persistent save
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.old

sudo nano /etc/dnsmasq.conf

interface=wlan0

dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h

domain=wlan



sudo rfkill unblock wlan

sudo nano /etc/hostapd/hostapd.conf



#Access point with password (WPA2):

country_code=GB

interface=wlan0

ssid=YourNetworkName

hw_mode=g

channel=7

macaddr_acl=0

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_passphrase=YourPassword

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

rsn_pairwise=CCMP



Check your country code: localectl status


If you want your access point to be open(no password):
interface=wlan0

driver=nl80211

ssid=YourNetworkName

hw_mode=g

channel=6

sudo reboot



🎵Music by:

"Sappheiros - Dawn" is under a Creative Commons license (CC BY 3.0) Music promoted by BreakingCopyright: http://bit.ly/2OBe00v

Комментарии

Информация по комментариям в разработке