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.