Wifi AP RTL8188CUS woes

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Wifi AP RTL8188CUS woes

Postby naesk » Sat Jul 16, 2016 7:23 am

Managed to get Raspberry Pi working as wifi access point using

dnsmasq, hostapd (hostapd-rtl871xdrv), iptables

(see previous post viewtopic.php?f=60&t=10428&p=52241&hilit=access+point#p52241 for my error)

All was working until I performed an update. Since then my Android phone reports Authentication problem.

I've also installed the 8192cu-dkms AUR as referenced on the main ArchLinux wiki but to no avail
https://wiki.archlinux.org/index.php/Wi ... #rtl8192cu

For completeness here are all the relevant info & configs

$this->bbcode_second_pass_code('', '$ lsusb
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter')



$this->bbcode_second_pass_code('', '$ lsmod
Module Size Used by
bnep 11195 2
xt_tcpudp 2258 3
xt_conntrack 3007 1
iptable_filter 1665 1
ipt_MASQUERADE 1223 1
nf_nat_masquerade_ipv4 2893 1 ipt_MASQUERADE
iptable_nat 1812 1
nf_conntrack_ipv4 13768 2
nf_defrag_ipv4 1684 1 nf_conntrack_ipv4
nf_nat_ipv4 5573 1 iptable_nat
nf_nat 15506 2 nf_nat_ipv4,nf_nat_masquerade_ipv4
nf_conntrack 101220 5 nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
8192cu 532668 0
btusb 29171 0
btrtl 4513 1 btusb
btintel 8601 1 btusb
btbcm 7570 1 btusb
cfg80211 497999 1 8192cu
bluetooth 328320 26 bnep,btbcm,btrtl,btusb,btintel
bcm2835_rng 2199 0
rng_core 8163 1 bcm2835_rng
bcm2835_gpiomem 3718 0
bcm2835_wdt 3621 0
uio_pdrv_genirq 3591 0
uio 9277 1 uio_pdrv_genirq
sch_fq_codel 8116 6
snd_bcm2835 22495 0
snd_pcm 89121 1 snd_bcm2835
snd_timer 22123 1 snd_pcm
snd 63853 3 snd_bcm2835,snd_timer,snd_pcm
ip_tables 12280 2 iptable_filter,iptable_nat
x_tables 17670 5 ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_conntrack,iptable_filter
ipv6 369985 0')



/etc/hostapd/hostapd.conf

$this->bbcode_second_pass_code('', ' ssid=MYWIFINAME
wpa_passphrase=MYPASSWORD
interface=wlan0
auth_algs=3
channel=7
driver=rtl871xdrv
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP')



/etc/dnsmasq.conf

$this->bbcode_second_pass_code('', ' no-resolv
interface=wlan0

dhcp-range=192.168.2.200,192.168.2.210,12h

server=208.67.222.222
server=208.67.220.220

log-queries
log-dhcp')



$this->bbcode_second_pass_code('', '$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
ether xxxxxxxxxxxxxxxxx txqueuelen 1000 (Ethernet)
RX packets 2801 bytes 623338 (608.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3141 bytes 461192 (450.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1 (Local Loopback)
RX packets 1729 bytes 219110 (213.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1729 bytes 219110 (213.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
ether xxxxxxxxxxxxxxxxx txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 699 bytes 53124 (51.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
')

iptables rules
$this->bbcode_second_pass_code('', 'iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT

iptables -I INPUT -p udp --dport 67 -i wlan0 -j ACCEPT
iptables -I INPUT -p udp --dport 53 -s 192.168.2.0/24 -j ACCEPT
iptables -I INPUT -p tcp --dport 53 -s 192.168.2.0/24 -j ACCEPT')
naesk
 
Posts: 6
Joined: Sun Mar 09, 2014 9:41 pm

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 8 guests