Re: [gentoo-user] Sharing an internet connection

2009-03-16 Thread Dan Farrell
Hi again.  Sorry I didn't get back to you sooner.  

On Thu, 12 Mar 2009 17:42:55 -0700
Grant emailgr...@gmail.com wrote:

 Thanks Dan.  No matter what I do, I can't get the other laptop to
 communicate with my laptop.  It can ping the router which is between
 us, but it can't get to the other side.  I've got dnsmasq and
 shorewall running on my laptop.  Any idea what the problem could be?

Yes; the problem is probably the routing tables.  

 - Grant
 



Re: [gentoo-user] Sharing an internet connection

2009-03-16 Thread Grant
 Hi again.  Sorry I didn't get back to you sooner.

 On Thu, 12 Mar 2009 17:42:55 -0700
 Grant emailgr...@gmail.com wrote:

 Thanks Dan.  No matter what I do, I can't get the other laptop to
 communicate with my laptop.  It can ping the router which is between
 us, but it can't get to the other side.  I've got dnsmasq and
 shorewall running on my laptop.  Any idea what the problem could be?

 Yes; the problem is probably the routing tables.

I moved the WAN from wlan0 to ppp0 and things started working.  I
guess I must have made some other change at the same time.  Thanks a
lot for your help.  This is a really slick setup.

- Grant



Re: [gentoo-user] Sharing an internet connection

2009-03-13 Thread b.n.
Grant ha scritto:
 I travel with a strong external antenna for picking up faint wireless
 signals.  It works great,
 May I ask which antenna? It's a long time I'm looking for something like
 that but I keep being told that external antennas are often useless (I'm
 thinking of the over-the-counter usb stuff)

 m.
 
 Here it is:
 
 http://www.hawkingtech.com/products/productlist.php?CatID=32FamID=58ProdID=152
 
 Pair this with a USB network adapter and a 15 meter USB extender cable
 and you're set.  It's a great antenna.

Thanks!

m.




Re: [gentoo-user] Sharing an internet connection

2009-03-12 Thread Dan Farrell
On Thu, 12 Mar 2009 13:26:45 -0700
Grant emailgr...@gmail.com wrote:

 I travel with a strong external antenna for picking up faint wireless
 signals.  It works great, but my girlfriend struggles to connect with
 her built-in antenna.  I do have a travel router (D-Link DWL-G730) so
 I'd like to be able to do something like this:
 
 WAN-my laptop-travel router-girlfriend's laptop

That sounds right to me.  Read on...

 I use wicd and I'm not sure how to go about this, especially since my
 laptop DHCPs for an IP from the WAN so I'm not sure how to define the
 gateway for the travel router when following this:

I don't have experience with wicd or the DWL-G730, but I did do a
little research on those and have suggestions.  

If I were setting this up myself it would be with another Wifi card in
AP mode, which I'd be running DHCP on.  In that case, the client (in
this case your girlfriend's laptop) would be given a DHCP address and a
default route of my AP's address.  Alternately I might forego the DHCP
server setup and instruct the client to set a particular IP and route
(the route would be my AP's IP).  In either case, nameservers could be
copied directly from my laptop to the client's, or my laptop could
supply its own IP for nameserver and provide DNS service or proxy
itself.  

My laptop would then have a route through the AP for internal traffic,
and use the (dhcp provided) default route for other traffic.
Therefore, the AP would never need to specify the IP of the external
connection.  

The client box would route all traffic through the AP's IP so it
wouldn't need to know the external IP either.  

My laptop would have to run IPTables for NAT.  You'll need network
address translation because external IPs like websites won't be able to
route to the client box's IP.  NAT gets around this.  

The AP provided by my laptop must also be on a different subnet than
the external network my laptop is connected to.  If my laptop was
connected to an access point offering a 192.168.1.0/24 subnet, for
example, a seperate subnet like 192.168.2.0/24 ought to be used on the
client side of my laptop.  Personally I'd probably use an rfc class
b subnet since they're rare, or another rare subnet like
192.168.66.0/24.  

 http://www.gentoo.org/doc/en/home-router-howto.xml
 
 Is there a simple way to pull this off?

In short, no, but it's not too complicated, and the home router guide
will help you, but using your travel router may make things more
complicated.  The travel router probably will itself provide NAT and
DHCP so I'm not sure without playing with one how it would look to set
it up that way.  You might want to provide those services yourself and
use the travel router as an AP instead.  



Re: [gentoo-user] Sharing an internet connection

2009-03-12 Thread b.n.
Grant ha scritto:
 I travel with a strong external antenna for picking up faint wireless
 signals.  It works great,

May I ask which antenna? It's a long time I'm looking for something like
that but I keep being told that external antennas are often useless (I'm
thinking of the over-the-counter usb stuff)

m.




Re: [gentoo-user] Sharing an internet connection

2009-03-12 Thread Grant
 I travel with a strong external antenna for picking up faint wireless
 signals.  It works great,

 May I ask which antenna? It's a long time I'm looking for something like
 that but I keep being told that external antennas are often useless (I'm
 thinking of the over-the-counter usb stuff)

 m.

Here it is:

http://www.hawkingtech.com/products/productlist.php?CatID=32FamID=58ProdID=152

Pair this with a USB network adapter and a 15 meter USB extender cable
and you're set.  It's a great antenna.

- Grant



Re: [gentoo-user] Sharing an internet connection

2009-03-12 Thread Grant
 I travel with a strong external antenna for picking up faint wireless
 signals.  It works great, but my girlfriend struggles to connect with
 her built-in antenna.  I do have a travel router (D-Link DWL-G730) so
 I'd like to be able to do something like this:

 WAN-my laptop-travel router-girlfriend's laptop

 That sounds right to me.  Read on...

 I use wicd and I'm not sure how to go about this, especially since my
 laptop DHCPs for an IP from the WAN so I'm not sure how to define the
 gateway for the travel router when following this:

 I don't have experience with wicd or the DWL-G730, but I did do a
 little research on those and have suggestions.

 If I were setting this up myself it would be with another Wifi card in
 AP mode, which I'd be running DHCP on.  In that case, the client (in
 this case your girlfriend's laptop) would be given a DHCP address and a
 default route of my AP's address.  Alternately I might forego the DHCP
 server setup and instruct the client to set a particular IP and route
 (the route would be my AP's IP).  In either case, nameservers could be
 copied directly from my laptop to the client's, or my laptop could
 supply its own IP for nameserver and provide DNS service or proxy
 itself.

 My laptop would then have a route through the AP for internal traffic,
 and use the (dhcp provided) default route for other traffic.
 Therefore, the AP would never need to specify the IP of the external
 connection.

 The client box would route all traffic through the AP's IP so it
 wouldn't need to know the external IP either.

 My laptop would have to run IPTables for NAT.  You'll need network
 address translation because external IPs like websites won't be able to
 route to the client box's IP.  NAT gets around this.

 The AP provided by my laptop must also be on a different subnet than
 the external network my laptop is connected to.  If my laptop was
 connected to an access point offering a 192.168.1.0/24 subnet, for
 example, a seperate subnet like 192.168.2.0/24 ought to be used on the
 client side of my laptop.  Personally I'd probably use an rfc class
 b subnet since they're rare, or another rare subnet like
 192.168.66.0/24.

 http://www.gentoo.org/doc/en/home-router-howto.xml

 Is there a simple way to pull this off?

 In short, no, but it's not too complicated, and the home router guide
 will help you, but using your travel router may make things more
 complicated.  The travel router probably will itself provide NAT and
 DHCP so I'm not sure without playing with one how it would look to set
 it up that way.  You might want to provide those services yourself and
 use the travel router as an AP instead.

Thanks Dan.  No matter what I do, I can't get the other laptop to
communicate with my laptop.  It can ping the router which is between
us, but it can't get to the other side.  I've got dnsmasq and
shorewall running on my laptop.  Any idea what the problem could be?

- Grant



Re: [gentoo-user] Sharing linux's internet connection with an iMac?

2006-03-27 Thread Hans-Werner Hilse
Hi,

On Mon, 27 Mar 2006 01:29:54 -0600 Boyd Stephen Smith Jr.
[EMAIL PROTECTED] wrote:

 Yes.  Set up a bridge device on the laptop between the wifi interface
 and the iMac interface; assuming your setup is as simple as I think,
 that should be all you need to do.

Most likely it wouldn't work because of the wlan link layer. Most WiFi
cards don't go well with bridging... So routing is the option which is
left.

-hwh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sharing linux's internet connection with an iMac?

2006-03-27 Thread Matthias Bethke
Hi Hans-Werner,
on Monday, 2006-03-27 at 13:36:38, you wrote:
 Most likely it wouldn't work because of the wlan link layer. Most WiFi
 cards don't go well with bridging... So routing is the option which is
 left.

The 802.11 link layer is almost exactly the same as in Ethernet so that
should be a driver issue. Particularly the LLC part is completely
compatible...I never actually tried the bridging though.

cheers!
Matthias
-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665


pgpgjlXiUP8De.pgp
Description: PGP signature


Re: [gentoo-user] Sharing linux's internet connection with an iMac?

2006-03-27 Thread Hans-Werner Hilse
Hi,

On Mon, 27 Mar 2006 18:23:24 +0200 Matthias Bethke
[EMAIL PROTECTED] wrote:

 on Monday, 2006-03-27 at 13:36:38, you wrote:
  Most likely it wouldn't work because of the wlan link layer. Most
  WiFi cards don't go well with bridging... So routing is the option
  which is left.
 
 The 802.11 link layer is almost exactly the same as in Ethernet so
 that should be a driver issue. Particularly the LLC part is completely
 compatible...I never actually tried the bridging though.

I should have been more verbose. 802.11 may be almost the same
regarding the logical link layer, but not the Media Access Control
layer. In fact, 802.11 has the DS bits in its headers and potentially
up to four relevant addresses for routing the packet (Receiver,
Transmitter, Source, Destination for our scenario). Bridging can in
fact work if the WiFi node in question can make use of these features.
However, most STA's cannot due to restrictions in their firmware. IIRC,
that's basically the difference between STA/AP firmware versions. By
definition, this is an AP function (see 802.11 standard, 1999, pg.
37ff.), WDS (Wireless Distribution Service). As it isn't relevant for
hardware design, I tend to agree that it is a driver problem,
although not quite like usual driver problems...

-hwh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sharing linux's internet connection with an iMac?

2006-03-26 Thread Boyd Stephen Smith Jr.
On Monday 27 March 2006 01:07, Ian [EMAIL PROTECTED] wrote 
about '[gentoo-user] Sharing linux's internet connection with an iMac?':
 I have a Linux laptop, and an iMac.
 This linux laptop uses a wifi connection to a router for
 network/internet access.
 While its connected to the network, can I plug in my iMac to my laptop
 and fool it
 into thinking it is connected to the router? I did this a long time ago
 with 2 windows
 boxes. Can it be done from Linux to OS X?

Yes.  Set up a bridge device on the laptop between the wifi interface and 
the iMac interface; assuming your setup is as simple as I think, that 
should be all you need to do.

Helpful documentation:
http://gentoo-wiki.com/HOWTO_setup_a_gentoo_bridge

Although, that does mention there could be some issues.  If a bridge 
doesn't work, you can probably just enable IPv4 (and IPv6, if you use it) 
forwarding and set up your iMac with a static IP.  That should get you up 
and running, although you might want to look deeper into the magic for 
iptables, iproute2, dhcp, etc. at some point in the future.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpcoc9hrmvkP.pgp
Description: PGP signature


Re: [gentoo-user] Sharing linux's internet connection with an iMac?

2006-03-26 Thread Uwe Thiem
On 27 March 2006 09:07, Ian wrote:
 Hi there
 Just because you guys/gals are smart.

 I have a Linux laptop, and an iMac.
 This linux laptop uses a wifi connection to a router for network/internet
 access.
 While its connected to the network, can I plug in my iMac to my laptop and
 fool it
 into thinking it is connected to the router? I did this a long time ago
 with 2 windows
 boxes. Can it be done from Linux to OS X?

Of course, it can be done. Set you laptop up as a firewall that uses 
masquerading or Network Address Translation (NAT) to hide anything behind it. 
Then point the default route of any box connecting to your laptop to the 
laptop or use dhcp.

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list