You are not logged in.

#1 2010-12-25 21:20:45

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Arch Linux wireless access point -- need some help

Hi everyone,

After yet another problem with my wireless gateway, I've decided to turn my old laptop into a router.

Setup:
1. Gateway
    Cable internet -> 4 IP's over ethernet
2. Laptop ("router")
    An old Compaq Presario laptop with RTL-8139/8139C/8139C+ ethernet and BCM4318 wireless card. It receives an IP from the gateway using dhcpcd.

Goal:
Turn laptop into a wireless router.

Accomplished so far:
1. Master mode on wireless card
    Used hostapd:

-bluemoon-16:13-~$ grep -v "^#" /etc/hostapd/hostapd.conf | grep -v "^$"
interface=wlan0
bridge=br0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=bluemoon
hw_mode=g
channel=6
beacon_int=100
dtim_period=2
max_num_sta=6
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=2
wpa_passphrase=********
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

This puts wlan0 into a Master mode.
2. Of course, hostapd required bridge

-bluemoon-16:13-~$ brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0014a57528a6       no              eth0
                                                                                 wlan0

Basically, I can associate with my newborn AP from another machine.

Problems:
DHCP.

More precisely, I can't configure dnsmasq to serve IPs. Everytime I run dhcpcd on an associated client machine,  I get a timeout. Here is my dncmasq.conf:

interface=br0
no-hosts
expand-hosts
domain=cr1520.fs.pa.us
dhcp-range=192.168.2.100,192.168.2.200,12h

Miscelanneous configs:

-bluemoon-16:15-~$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1 bluemoon.localdomain localhost.localdomain localhost bluemoon

# End of file
-bluemoon-16:19-~$ cat /etc/resolv.conf 
# Generated by dhcpcd from br0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
nameserver 71.242.0.12
nameserver 127.0.0.1
search cr1520.fs.pa.us
# /etc/resolv.conf.tail can replace this line
-bluemoon-16:19-~$ cat /etc/hosts.{allow,deny}
#
# /etc/hosts.allow
#
exim:LOCAL
sshd:ALL EXCEPT 127.0.0.1
domain:ALL
# End of file
#
# /etc/hosts.deny
#
ALL: ALL
# End of file

I suspect that this something to do with my resolv.conf or /etc/hosts, by kinda lost...

TIA and Happy Christmas!


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#2 2010-12-26 02:36:13

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: Arch Linux wireless access point -- need some help

put your dhcp server and access point in the same subnet.

Offline

#3 2010-12-26 05:01:34

daniel2010
Member
Registered: 2010-12-01
Posts: 2

Re: Arch Linux wireless access point -- need some help

it must work

Offline

Board footer

Powered by FluxBB