F5F Stay Refreshed Power Users Networks Yes, you can use an RPi as a wireless router. It can handle Wi-Fi and provide internet connectivity for your devices.

Yes, you can use an RPi as a wireless router. It can handle Wi-Fi and provide internet connectivity for your devices.

Yes, you can use an RPi as a wireless router. It can handle Wi-Fi and provide internet connectivity for your devices.

B
BeardyMayhem
Junior Member
8
07-19-2023, 01:14 PM
#1
I have a Raspberry Pi acting as a wireless router. You can connect it to your PC when needed and then only one device will be linked to the network it offers. It’s a Pi4 with 8GB storage, and I’ve looked through the Arch documentation for setup steps, but it doesn’t seem clear how to do it. It should be straightforward, but I’m not sure where to start...
B
BeardyMayhem
07-19-2023, 01:14 PM #1

I have a Raspberry Pi acting as a wireless router. You can connect it to your PC when needed and then only one device will be linked to the network it offers. It’s a Pi4 with 8GB storage, and I’ve looked through the Arch documentation for setup steps, but it doesn’t seem clear how to do it. It should be straightforward, but I’m not sure where to start...

P
Papyrule
Senior Member
560
07-20-2023, 06:07 AM
#2
It’s not too complicated, though I wouldn’t suggest it. The wireless setup is average quality. You’ll need hostapd to handle the wireless access point, dhcpd to assign IPs on the local network (or dnsmasq if preferred), iptables for security and NAT, plus some basic networking tweaks like enabling packet forwarding and confirming routes. *A bonding option exists, but it doesn’t integrate well with systemd-networkd without extra configuration after boot.* The guide is confusing and the documentation isn’t reliable.
P
Papyrule
07-20-2023, 06:07 AM #2

It’s not too complicated, though I wouldn’t suggest it. The wireless setup is average quality. You’ll need hostapd to handle the wireless access point, dhcpd to assign IPs on the local network (or dnsmasq if preferred), iptables for security and NAT, plus some basic networking tweaks like enabling packet forwarding and confirming routes. *A bonding option exists, but it doesn’t integrate well with systemd-networkd without extra configuration after boot.* The guide is confusing and the documentation isn’t reliable.

T
Tim3Crime
Member
54
07-23-2023, 12:51 AM
#3
Without external network access, I shouldn't require them at all?
T
Tim3Crime
07-23-2023, 12:51 AM #3

Without external network access, I shouldn't require them at all?

G
ghsuakuo
Junior Member
31
07-24-2023, 02:40 PM
#4
Use NAT without bonding on a single line. Apply masquerade to POSTROUTING interface eth0 with iptables. Default rules remain ACCEPT unless you specify otherwise.
G
ghsuakuo
07-24-2023, 02:40 PM #4

Use NAT without bonding on a single line. Apply masquerade to POSTROUTING interface eth0 with iptables. Default rules remain ACCEPT unless you specify otherwise.