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 03:19 PM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  342
sm00thpapa  231
stevech  185
azazel1024  154
KGB7  138
jim769  83
htismaqe  81
philmiami  78
AcostaJA  69
ColinTaylor  59
RMerlin  5087
stevech  315
ryzhov_al  252
TeHashX  209
RogerSC  187
L&LD  186
joegreat  123
jlake  122
sinshiva  111
sfx2000  111
Most Viewed Threads* Hottest Threads*
Old ASUS RT-N66U...  23962
Old NETGEAR...  13039
Old Switched...  7644
Old 3.0.0.4.376.1...  6761
Old NEW RT-AC68R...  6680
Old ASUS...  6061
Old ASUS RTAC68U...  3531
Old Netgear...  3330
Old ASUS...  3207
Old N66U daily...  2861
Old ASUS RT-N66U...  169
Old NETGEAR...  161
Old Switched...  65
Old NEW RT-AC68R...  56
Old ASUS...  51
Old N66U daily...  47
Old Which router...  41
Old ASUS RTAC68U...  41
Old Netgear...  41
Old TP-Link...  38


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