LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-28-2012, 04:07 PM   #1
marietto
Member
 
Registered: Aug 2010
Posts: 31

Rep: Reputation: 6
Make a hotspot with Ubuntu 11.10 and connects Mac mini/leopard/airport to it.


Hello.

I'm trying to configure a hotspot with my Ubuntu 11.10 X64 using hostapd and following this guide : http://linuxalfi.wordpress.com/2011/...nnectifylinux/

This is what I did :

root@ziomario:/home/mario# lsusb

Bus 001 Device 004: ID 148f:2573 Ralink Technology, Corp. RT2501/RT2573 Wireless Adapter

root@ziomario:/home/mario# lsmod | grep rt
scsi_transport_iscsi 46321 4 ib_iser,iscsi_tcp,libiscsi
parport_pc 36962 1
rt73usb 31242 0
crc_itu_t 12707 1 rt73usb
rt2x00usb 20686 1 rt73usb
rt2x00lib 50497 2 rt73usb,rt2x00usb
mac80211 492265 2 rt2x00usb,rt2x00lib
cfg80211 204021 2 rt2x00lib,mac80211
parport 46562 3 ppdev,parport_pc,lp

root@ziomario:/home/mario# nano /etc/hostapd.conf

#change wlan0 to your wireless device
interface=wlan0
driver=nl80211
ssid=marietto
channel=7
hw_mode=g
wme_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=0
wpa_passphrase=********
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

root@ziomario:/etc# hostapd /etc/hostapd.conf

Configuration file: /etc/hostapd.conf
Using interface wlan0 with hwaddr ... and ssid 'marietto'
wlan0: STA 00:23:6c:7a:5a:56 IEEE 802.11: authenticated
wlan0: STA 00:23:6c:7a:5a:56 IEEE 802.11: associated (aid 1)
AP-STA-CONNECTED
wlan0: STA RADIUS: starting accounting session 4F4D365B-00000000

and then I have started another shell :

root@ziomario:/home/mario# ifconfig wlan0 192.168.27.1 up
root@ziomario:/home/mario# ifconfig

eth1 Link encap:Ethernet HWaddr
indirizzo inet:192.168.2.3 Bcast:192.168.2.255 Maschera:255.255.255.0
indirizzo inet6: fe80::2e1:a7ff:fe76:7681/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:333562 errors:0 dropped:0 overruns:0 frame:0
TX packets:190798 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:424062427 (424.0 MB) Byte TX:19303155 (19.3 MB)

lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:120 errors:0 dropped:0 overruns:0 frame:0
TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:0
Byte RX:35422 (35.4 KB) Byte TX:35422 (35.4 KB)

mon.wlan0 Link encap:UNSPEC HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:280 (280.0 B) Byte TX:0 (0.0 B)

vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
indirizzo inet:192.168.30.1 Bcast:192.168.30.255 Maschera:255.255.255.0
indirizzo inet6: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:0 (0.0 B) Byte TX:0 (0.0 B)

vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
indirizzo inet:192.168.111.1 Bcast:192.168.111.255 Maschera:255.255.255.0
indirizzo inet6: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:0 (0.0 B) Byte TX:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr
indirizzo inet:192.168.27.1 Bcast:192.168.27.255 Maschera:255.255.255.0
indirizzo inet6: fe80::20e:8eff:fe19:8c4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:0 (0.0 B) Byte TX:12570 (12.5 KB)

root@ziomario:/home/mario# nano /etc/default/udhcpd

#DHCPD_ENABLED="no"
comment this line to enable the server,

root@ziomario:/home/mario# nano /etc/udhcpd.conf

start 192.168.27.2
end 192.168.27.254
opt dns 192.168.2.1
option subnet 255.255.255.0
opt router 192.168.2.1
option domain urorgonizaion.edu

root@ziomario:/home/mario# service udhcpd start

Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.

root@ziomario:/home/mario# echo "1" > /proc/sys/net/ipv4/ip_forward

root@ziomario:/home/mario# iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE

root@ziomario:/home/mario# iptables --append FORWARD --in-interface wlan0 -j ACCEPT

Do you see some mistake ? The problem is that I can't connect through my Mac Mini / Leopard. It is connected,but unable to surf the net. After some tries,it says : you are not connected to internet.
 
  


Reply

Tags
hotspot, mac, ralink, ubuntu, wifi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Ubuntu 2.6.32 look like Snow Leopard? dolphans1 Ubuntu 14 06-13-2010 02:46 PM
[SOLVED] Permissions between Mac OS X Snow Leopard and Linux Ubuntu 9.10 riganta Linux - Desktop 11 03-17-2010 07:35 PM
LXer: Snow Leopard on a Mac without a Mac motherboard LXer Syndicated Linux News 1 01-12-2010 02:28 PM
HI, new to Ubuntu 9.04, using on HP 2133 mini, can't connect to my Airport wireless pbnmrc Ubuntu 1 12-21-2009 10:37 PM
dual boot mac os x leopard and ubuntu on macbook pro. Polanski Linux - Software 9 11-05-2008 04:09 PM


All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration