Share internet over wireless

HI!
It is my first post… I have just moved to OpenSUSE 12.1 from ubuntu (i really don’t like unity =)).
I have a questin about internet sharing.
I have two wireless cards. I want to receive internet connection with one and than create a new wireless connection and share internet via other wireless card. At our student home only i got a username and password for wireless internet and now i want to share it with my romemates.
Does anyone know how to do it??

  • kurci2 wrote, On 11/21/2011 12:16 AM:
    > At our student home only i got a username and
    > password for wireless internet and now i want to share it with my
    > romemates.

Make sure this is legal. Probably it’s not. Even if it is legal, consider what happens if one of your room mates downloads illegal material over this connection: The other side will see your connection in the logs and you’re toast.
Still want to do it?

Uwe

On 11/20/2011 05:16 PM, kurci2 wrote:
>
> HI!
> It is my first post… I have just moved to OpenSUSE 12.1 from ubuntu
> (i really don’t like unity =)).
> I have a questin about internet sharing.
> I have two wireless cards. I want to receive internet connection with
> one and than create a new wireless connection and share internet via
> other wireless card. At our student home only i got a username and
> password for wireless internet and now i want to share it with my
> romemates.
> Does anyone know how to do it??

What you need to do is create an Access Point using the shared card and running
hostapd. There is a thread in this forum that contains the setup needed to do
it. There are some restrictions: (1) You will need to use ifup to control your
networking as NetworkManager gets in the way - this setup is harder, and (2) not
all wireless drivers work with hostapd. You need to post some information on
those cards.

As far as i know this is legal and i trust my roommates that they won’t do anything forbidden.

My internet accepting card: BROADCOM 4313 (Toshiba Laptop)
My internet sharing card: USB TP-LINK TL-WN722N

Is this possible with those two cards and i would really appreciate if you could give my that link…
Thanks!

bump bump =)

  • kurci2 wrote, On 11/24/2011 10:36 AM:
    >
    > bump bump =)
    >
    >
    did you search the forum for the article containing instructions, as Larry said?
    Also note that your “Access Point” card must works with hostapd. Your USB device probably won’t:
    http://hostap.epitest.fi/hostapd/

Uwe

I am also trying to share my internet connection wirelessly. This is my first post too.
I am using OpenSuse 12.1 with the KDE NetworkManager applet.
I want to share internet with my Nokia N900.

If possible, I would strongly prefer continuing to use NetworkManager, as I need it at university for connecting to wireless networks when I am there. According to these howtos, NetworkManager can also be used to share an internet connection wirelessly:
Red Hat Magazine | Video: Fedora 10 Connection
https://jeremy.visser.name/2009/03/simple-internet-connection-sharing-with-networkmanager/

Here is what I have tried:

  1. Created an open ad-hoc network on the OpenSuse named “suse” with SSID “suse” and IPv4 method “Shared”, in accordance with the second howto.
  2. Connected to it from OpenSuse.
  3. Tried to connect to it with my Nokia N900.
  4. Tried to connect to it with my brother’s Windows computer (for debugging).
  5. I observed by the IP addresses seen in ifconfig/ipconfig that the computers were not on the same subnet.
  6. I saw from Wireshark on OpenSuse that it received a “DHCP Discover” packet every 4th second, with destination MAC address ff:ff:ff:ff:ff:ff and source MAC address equal to the MAC address of my Nokia’s wlan0. The “Transaction ID” of each packet was the same. Similarly, I also got sporadic (fewer) DHCP requests coming from the Windows computer. OpenSuse failed to reply to all DHCP requests.
  7. I couldn’t ping OpenSuse either.
  8. Dnsmasq was running on OpenSuse, according to Htop.
  9. I was about to give up when I got the idea to turn off the firewall on OpenSuse. A flood of packets appeared in Wireshark; of the first was 3 DHCP ACKs. Then came a lot of ARP packets, DNS, and TCP SYNs.
  10. The 3 nodes are now on the same subnet, and I can ping OpenSuse and Nokia, but not Windows. The ICMP echo requests show up in wireshark, so I suppose that’s just the firewall of Windows trying to fool me.
  11. When trying web browsing on either Windows or Nokia, DNS seems to work. (When trying a random domain name I have never visited before, I see the DNS request being forwarded to my ISP, and the response being relayed back to the machine of the browser.) However the same TCP “http [SYN] Seq=0” requests get resent over and over again on the ad-hoc net, but do not appear on the external net. Their source IPs are the Windows or Nokia machine respectively, and their destination IP is that of the remote site.

What to try next?

NetworkManager does not work as advertised. Clearly, there is a problem with relaying TCP datagrams. Should I file a bug report?

On 01/11/2012 01:16 PM, anordal wrote:
>
> I am also trying to share my internet connection wirelessly. This is my
> first post too.
> I am using OpenSuse 12.1 with the KDE NetworkManager applet.
> I want to share internet with my Nokia N900.
>
> If possible, I would strongly prefer continuing to use NetworkManager,
> as I need it at university for connecting to wireless networks when I am
> there. According to these howtos, NetworkManager can also be used to
> share an internet connection wirelessly:
> ‘Red Hat Magazine | Video: Fedora 10 Connection’
> (http://tinyurl.com/yk5ehkd)
> http://tinyurl.com/3lf6ny8
>
> Here is what I have tried:
> 1) Created an open ad-hoc network on the OpenSuse named “suse” with
> SSID “suse” and IPv4 method “Shared”, in accordance with the second
> howto.
> 2) Connected to it from OpenSuse.
> 3) Tried to connect to it with my Nokia N900.
> 4) Tried to connect to it with my brother’s Windows computer (for
> debugging).
> 5) I observed by the IP addresses seen in ifconfig/ipconfig that the
> computers were not on the same subnet.
> 6) I saw from Wireshark on OpenSuse that it received a “DHCP Discover”
> packet every 4th second, with destination MAC address ff:ff:ff:ff:ff:ff
> and source MAC address equal to the MAC address of my Nokia’s wlan0. The
> “Transaction ID” of each packet was the same. Similarly, I also got
> sporadic (fewer) DHCP requests coming from the Windows computer.
> OpenSuse failed to reply to all DHCP requests.
> 7) I couldn’t ping OpenSuse either.
> 8) Dnsmasq was running on OpenSuse, according to Htop.
> 9) I was about to give up when I got the idea to turn off the firewall
> on OpenSuse. A flood of packets appeared in Wireshark; of the first was
> 3 DHCP ACKs. Then came a lot of ARP packets, DNS, and TCP SYNs.
> 10) The 3 nodes are now on the same subnet, and I can ping OpenSuse and
> Nokia, but not Windows. The ICMP echo requests show up in wireshark, so
> I suppose that’s just the firewall of Windows trying to fool me.
> 11) When trying web browsing on either Windows or Nokia, DNS seems to
> work. (When trying a random domain name I have never visited before, I
> see the DNS request being forwarded to my ISP, and the response being
> relayed back to the machine of the browser.) However the same TCP “http
> [SYN] Seq=0” requests get resent over and over again on the ad-hoc net,
> but do not appear on the external net. Their source IPs are the Windows
> or Nokia machine respectively, and their destination IP is that of the
> remote site.
>
> What to try next?
>
> NetworkManager does not work as advertised. Clearly, there is a problem
> with relaying TCP datagrams. Should I file a bug report?

I have never had much success with NM with either ad-hoc or AP mode in any
wireless driver. When you want those modes, switch to ifup.