LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-17-2011, 10:56 PM   #1
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
Problems on building own AP


My aim is to build a direct wi-fi connection between my iPad and my Linux machine. Thus I can access my Linux through ssh, ftp, http, and samba server. Since I have a Ralink 3090 wi-fi card in my Linux machine, I want to build it a linux wi-fi AP, and let my iPad connect its ssh or other servers. The driver for wi-fi card is mac80211, with a nl80211 lib, and the daemon software is hostapd.

Hostapd seems work well, since iwconfig tells that wlan0 works on a Master mode, and I can see my wi-fi SSID in iPad. But when iPad connected it, it took several minutes to show connection was ready, and iPad got a strange IP. So I didn't know what IP to connect the Linux box with ssh or http.

I did this on Linux box:
Code:
ifconfig wlan0 192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0
Then let iPad to connect the AP with a static IP 192.168.2.3 and subnet mask 255.255.255.0. it took several minutes to show the connection was ready, but I could not ssh or browse http 192.168.2.1. I tested with a Windows machine, it instantly showed wi-fi connection was ready, but it couldn't ping 192.168.2.1 too.

I followed some guides and tried DHCPD, with some level of unclearness. Almost the same thing: iPad or Windows machine got an expected IP (in the range of presetted), but couldn't ping 192.168.2.1.

I guess it's not a hostapd problem, but a ip_tables problem or some other settings. I checked this thread:
http://www.linuxquestions.org/linux/...s_Access_Point

But it is somewhat old, so the kernel modules and iptables command are somewhat different, which means I cannot follow it step by step.

I need someone to tell me what my problem looks like to be. iptables? Or?

Thanks a lot! And sorry for my English.

Last edited by nsp; 11-17-2011 at 11:28 PM. Reason: Grammar, again!
 
Old 11-18-2011, 03:50 AM   #2
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Question

Then I did something like this:
Code:
brctl addbr br0 #This creates the br0 bridge
brctl addif br0 eth0 #This adds the eth0 interface to the br0 ethernet bridge
brctl setfd br0 0 #This sets the forwarding delay to 0 seconds
brctl addif br0 wlan0
and also something like:
Code:
 iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
I am not sure what the meaning were, and which commands worked.

And my iPad got a dynamic IP of 192.168.0.107, which is within my upper router's DHCP range! And I can acces the Internet now. But I can't access my own Linux box!

So I think it's a net - subnet problem. Any suggestions?

Last edited by nsp; 11-18-2011 at 04:11 AM. Reason: updated
 
Old 11-18-2011, 04:18 AM   #3
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
I think this means my wireless AP is built. But the linux box still needs other functions to let its wireless client to access its servers. What is it? Router? I need suggestions, thanks!
 
Old 11-22-2011, 02:12 AM   #4
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Solved.
http://www.linuxquestions.org/questi...chines-914220/
 
  


Reply

Tags
ap, dhcp, router, 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
[SOLVED] Problems building xfce Netooo Linux - Software 3 01-17-2011 01:13 PM
problems building modules chewbo Linux - Hardware 0 01-17-2008 12:09 PM
Building Exim 4.30 problems! astott Linux - Networking 0 02-17-2004 08:56 PM
Problems building XFree86 ugenn Linux - Software 1 06-12-2003 04:24 PM
RH 7.2 problems building rpm myra Linux - General 0 05-01-2002 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration