You are not logged in.
Hi,
I have tripple boot on my laptop. I have Windows, Ubuntu and Arch. I want to share my laptop internet with my Android phone using reverse tethering without rooting my phone. As far as I know, I can not do this using usb. I can only do without rooting my Android phone is, using Wifi hotspot.
I tried this in Windows first because I thought that could be much simpler and will not give any problem with drivers/ properitry drivers. I tried with Connectify utility. I could create wireless hotspot on Windows. I even connected my Android phone over wireless to my Windows laptop but I could not use internet. May be firewall or Anti virus blocking it. I did not want waste time on it because finally I use linux 95% of time so I wanted it on Ubuntu and Arch installation.
Good thing is after few attempts and 2 days of trying I could successfully do it on Ubuntu. It runs very good without any problem. I can browse internet, I can download apps from google play store, install them etc on my Android phone using my laptop internet. So its 100% running without problem. I followed this http://www.webupd8.org/2013/06/how-to-s … ccess.html guide for Ubuntu setup. But I had to uninstall properitry broadcom drivers and install ubuntu drivers as mentioned 4th and 5th answer here http://askubuntu.com/questions/55868/ho … rs-bcm43xx
Now I want to do same setup on Arch Linux. I read Arch wiki here https://wiki.archlinux.org/index.php/So … cess_Point in which it is mentioned to create bridge or NAT to share internet over wifi hotspot. Since I am not much expert I am not even able to figure out if I have installed correct wifi driver in Arch Linux.
Any help will be highly appreciated.
Thanks
Last edited by davidg (2013-10-31 07:20:21)
Offline
I have reached much closer now. But I think somehow firewall is blocking it. Here is what I have done.
I read this wiki https://wiki.archlinux.org/index.php/So … cess_Point I downloaded create_ap script mentioned in this wiki. I also fixed NetworkManager is interfering problem mentioned in the wki by adding
[keyfile]
unmanaged-devices=mac:<hwaddr>
to /etc/NetworkManager/NetworkManager.conf
Now I can start wifi hotspot. I can make connection from my Android phone. But I am not able to trasfer any data. Same problem which I faced in Windows.
I also read https://wiki.archlinux.org/index.php/Internet_Sharing wiki. In it's Troubleshooting section it mentions
Troubleshooting
If you are able to connect the two PCs but cannot send data (for example, if the client PC makes a DHCP request to the server PC, the server PC receives the request and offers an IP to the client, but the client does not accept it, timing out instead), check that you don't have other Iptables rules interfering.
Now I do not understand how to configure iptable rule for this particular problem.
Here output of commands
sudo ./create_ap wlan0 eth0 test1 password
Parameters : create_ap is shell script, wlan0 is my wifi, etho0 is ethernet, test1 is profile name and password is password.
Config dir: /tmp/create_ap.wlan0.conf.bDpVKgtN
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.bDpVKgtN/hostapd_ctrl
Configuration file: /tmp/create_ap.wlan0.conf.bDpVKgtN/hostapd.conf
Using interface wlan0 with hwaddr 0c:60:76:4d:f5:06 and ssid "test1"
wlan0: STA 44:91:db:89:be:63 IEEE 802.11: authenticated
wlan0: STA 44:91:db:89:be:63 IEEE 802.11: associated (aid 1)
WPA: wpa_sm_step() called recursively
wlan0: STA 44:91:db:89:be:63 IEEE 802.11: deauthenticated due to local deauth request
I think very near but how to fix firewall from interfering by adding this rule mentioned here https://bbs.archlinux.org/viewtopic.php?pid=1093208 I have never configured iptable rule before.
Thanks
Last edited by davidg (2013-10-30 18:09:48)
Offline
I just checked my NetworkManager applet. My ethernet network is enp9s0 instead of eth0. I made changes in startup accoridningly. In the beginning it was disconnecting immediately after successful connection. I restarted my laptop. Now it has connected. It looks to me working fine for half an hour now. Anyone who face similar problem, please refer to wiki ( the links I have mentioned above ). Also refer to https://bbs.archlinux.org/viewtopic.php?id=151342
I still have not learned how to configure iptables, but I will learn it. Anyway I hope it works well.
Thanks
Offline