I configured my RPI as a wifi repeater (using hostapd
and dnsmasq
). When I download something to my pi I have a downstream up to 1.5 MB/s. On my device connected to the pi the downstream is only about 500 KB/s.
When I download local files from my pi, it works with up to 3 MB/s, so I think it is not an issue with my access point.
I'm using a Raspberry Pi 1 Model B with two USB to wifi adapter.
Why do I lose so much internet speed? Have I configured something wrong?
My configuration:
/etc/dhcpcd.conf
interface wlan0
static ip_address=192.168.42.1/24
nohook wpa_supplicant
/etc/dnsmasq.conf
interface=wlan0
dhcp-range=192.168.42.20,192.168.42.100,255.255.255.0,12h
Iptables (wlan0 is the AP, wlan1 connects to the internet)
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT
wget -O /dev/null http://speedtest.belwue.net/10G
. I'm sure the connected device is not limited, since I can download directly from the pi or in other networks with higher speed. – Ingo Oct 24 '18 at 17:34