[HELP] - Setting up Access Point

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[HELP] - Setting up Access Point

Postby Seishun » Mon Nov 03, 2014 7:14 pm

My tools: netctl, dnsmasq, iptables, hostapd, 2 tl-wn725n wifi dongles (wlan0 and wlan1)

Problem: netctl can't get wlan1 to issue a static IP as an access point

I've configured dnsmasq, iptables,and hostapd (see below) as well as enabled port forwarding (between wlan0 <-> wlan1). I simply cannot for the life of me configure wlan1 with netctl.

Is this even possible? I assume it is because the Wiki said so: "A static address can be configured with most networking tools standard in Arch Linux, for example see netctl, systemd-networkd, dhcpcd."

Source: https://wiki.archlinux.org/index.php/Ne ... IP_address

Whenever I run netctl start wlan1-ap, it gives me errors saying either wpa_supplicant can't start it since the password is < 8 OR it can't find the network to connect to which is absurd because I'm trying to make wlan1 the AP!

Please help I've spent the last 2-3 days scouring the wiki and forums to figure this out. Thanks!

***EDIT***

Note that I am trying to know whether or not it is possible with netctl not by manually configuring with "ip" as seen here:
https://wiki.archlinux.org/index.php/Ne ... ng_systemd

hostapd.conf
$this->bbcode_second_pass_code('', '
interface=wlan1
driver=rtl871xdrv
ssid=dev_raspi_ap
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=1234567890pqq
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# additional args
ieee80211n=1
wmm_enabled=1
')

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

iptables-save > /etc/iptables/iptables.rules
')

netctl/wlan1-ap
$this->bbcode_second_pass_code('', '
Description='N/A'
Interface=wlan1
Connection=wireless
Security=wpa
#ESSID='accesspoint'
#Key=\"blah-blah-blah hashed wpa_passphrase
IP=static
Address='192.168.42.1/24'
Gateway='192.168.1.1'
#DNS=('192.168.1.1')
#DNS=('192.168.42.1')
# Uncomment this if your ssid is hidden
#Hidden=yes
')
Seishun
 
Posts: 1
Joined: Mon Nov 03, 2014 6:33 pm

Re: [HELP] - Setting up Access Point

Postby sdjf » Mon Nov 10, 2014 6:40 am

since no one else has answered, I will comment that you made no mention of the contents of your netctl profile, which I believe is absolutely essential to use.

have you looked at the examples in /etc/netctl/examples/ and specifically the one for wireless-wpa-static? I am no expert on wireless, do not use it, but those examples were very carefully written and tested.

make sure there is only one profile in /etc/netctl, you may be having trouble if you added an appropriate one and removed the other.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 59 guests