SmallNetBuilder Forums

Go Back   SmallNetBuilder Forums > Wireless Networking > General Wireless Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-25-2013, 12:56 PM
tosiara's Avatar
tosiara tosiara is offline
New Member
 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
tosiara is just starting out
Default Linux wireless repeater (range extender)

Hi,

I want to use my old laptop as a wireless range extender (temporary).

Can anybody point me to any step-by step instruction for Linux?

Thanks
Reply With Quote
  #2  
Old 01-27-2013, 02:06 PM
tosiara's Avatar
tosiara tosiara is offline
New Member
 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
tosiara is just starting out
Default

Here is my solution using NAT (wireless bridge is not possible)

Code:
# create virtual wlan adapter and run HostAP
iw phy phy0 interface add hostap.wlan1 type managed
ifconfig hostap.wlan1 down
ifconfig hostap.wlan1 hw ether 12:34:56:78:90:ab
ifconfig hostap.wlan1 192.168.0.1 up
hostapd /etc/hostapd.conf -B

# start DHCP and DNS
systemctl start dhcpd.service
systemctl start named.service

# connect to upstream AP
wpa_supplicant -D wext -i wlan0 -c /etc/wpa.conf -B
dhcpcd wlan0

# enable NAT
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface hostap.wlan1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
Hope this helps
Reply With Quote
Reply

Tags
linux, repeater

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


All times are GMT -4. The time now is 11:19 PM.

Top 10 Stats
Top Posters* Top Thanked
RMerlin  242
stevech  65
coxhaus  61
kfmfe04  32
CaptainSTX  31
Pericynthion  30
jlake  29
sm00thpapa  28
mikeg  22
Mark Uhde  22
RMerlin  1671
stevech  146
ryzhov_al  116
TeHashX  88
RogerSC  72
GregN  54
Geraner  44
CL-Jeremy  42
joegreat  41
sfx2000  34
Most Viewed Threads* Hottest Threads*
Old Asus .370...  9052
Old Rt-ac68u  5258
Old Apple's New...  4152
Old Teaser-time!  3016
Old New firmware  2227
Old Site Survey...  2080
Old Upgrade to...  2080
Old Choosing a...  1881
Old 5Ghz Speed...  1781
Old Download...  1596
Old Site Survey...  46
Old Asus .370...  43
Old Apple's New...  35
Old Rt-ac68u  34
Old Teaser-time!  23
Old 5Ghz Speed...  21
Old Upgrade to...  21
Old New N66U -...  15
Old Best...  15
Old unable to...  14





Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2006-2013 Pudai LLC All Rights Reserved.