Re: [ilugd] Setting up your laptop/desktop as an access point

2008-03-01 Thread Vikas Rawal

> beyond "iwconfig eth1 node master". I need DHCP and preferably WPA.

I found these two links useful.

https://help.ubuntu.com/community/WifiDocs/Adhoc
https://help.ubuntu.com/community/InternetConnectionSharing

Best,

Vikas





___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Raj Mathur
On Friday 29 Feb 2008, Vikas Rawal wrote:
> > iwconfig eth1 mode ad-hoc essid 'sandip' channel 11 (or whatever)
>
> Sorry for a dumb question. How does one turn it off (that is, stop
> using it as AP)? This sounds quite interesting.

  iwconfig eth1 mode managed

will set it back to connect to an AP.  After that you can use your 
standard tools to connect.

Regards,

-- Raju
-- 
Raj Mathur[EMAIL PROTECTED]  http://kandalaya.org/
 Freedom in Technology & Software || February 2008 || http://freed.in/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Shakthi Kannan
Hi,

--- On Fri, Feb 29, 2008 at 10:43 AM, Vikas Rawal <[EMAIL PROTECTED]> wrote:
|  Sorry for a dumb question.
\--

Don't worry about all this. Feel free to ask.

---
| How does one turn it off (that is, stop
|  using it as AP)? This sounds quite interesting.
\--

Just down the interface using "ifdown eth1".

Or, in most laptops there is an "RF kill" switch for the wireless that
can be controlled in software/hardware. You can use it to
enable/disable wireless.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Vikas Rawal

> 
> iwconfig eth1 mode ad-hoc essid 'sandip' channel 11 (or whatever)

Sorry for a dumb question. How does one turn it off (that is, stop
using it as AP)? This sounds quite interesting.

Vikas



___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Raj Mathur
On Thursday 28 Feb 2008, Sandip Bhattacharya wrote:
> I have a wired internet connection at home and my laptop is using it.
> I would like my mobile (which supports wi-fi) to use the network
> connection that my laptop has to save me some money- nice when your
> laptop is not very mobile and stuck with the network wire, while you
> can move around the building with the mobile.
>
> so one option is to setup the laptop as an access point that the
> mobile can use.
>
> Raj talked about this sometime back. Are there any docs that people
> can provide which explains how to set it up in a secure way? I
> haven't gone beyond "iwconfig eth1 node master". I need DHCP and
> preferably WPA.

iwconfig eth1 mode ad-hoc essid 'sandip' channel 11 (or whatever)

Now your laptop is a P2P WiFi AP, and you can connect any other WiFi 
device that does Ad-Hoc networking with it.  Of course, this will only 
work if the laptop itself isn't connected to an AP (i.e. in Managed 
mode) -- you can only run it in one of Managed or Ad-Hoc modes at any 
time.

Regards,

-- Raju
-- 
Raj Mathur[EMAIL PROTECTED]  http://kandalaya.org/
 Freedom in Technology & Software || February 2008 || http://freed.in/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Ashish Shukla आशीष शुक्ल
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Ashish Shukla आशीष शुक्ल writes:

[snipped]

आशीष> [2] - http://www.avahi-project.org/

s/avahi-project/avahi/

Sorry for the typo.
- -- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHxvviHy+EEHYuXnQRArqlAJwMtMFq5rPIaNlJgzzBcYIZGrhWTACcDIke
czu4NCcjVEDXtwMCfb+zeq0=
=DW1h
-END PGP SIGNATURE-

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Shakthi Kannan
Hi Sandip,

--- On Thu, Feb 28, 2008 at 5:15 PM, Sandip Bhattacharya
<[EMAIL PROTECTED]> wrote:
|  For this, I would need a separate private network between the laptop and
|  the mobile, isn't it?
\--

Yes.

---
| Besides, outside my home, I do not have control
|  over the IP space used by the laptop to allocate one to the mobile.
\--

Sorry, what do you mean by "no control"? A private network is owned by
you, and you control it. Use any 10.0.0.0 or 192.168.0.0 network
address.

---
|  I am also not comfortable using static IP even for testing(I understand
|  that it eliminates an unknown during testing), as my mobile is
|  definitely easier to manage with DHCP.
\--

Install a DHCP server on your laptop, and run it to issue private IP
addresses to your mobile.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Ashish Shukla आशीष शुक्ल
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Sandip Bhattacharya writes:
Sandip> Shakthi Kannan wrote:

>> 1. Enable wireless on laptop with master mode. Disable encryption.
>> 2. Configure static IP address on the phone, and test ping between
>> phone and laptop (wireless).
>> 
>> To forward the requests between the wired and wireless connection, you
>> will need to enable ip_forward on the laptop:
>> 
>> sudo echo 1 > /proc/sys/net/ipv4/ip_forward
>> 
>> and enable NAT operation. For example:
>> 
>> sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


Sandip> For this, I would need a separate private network between the 
laptop and
Sandip> the mobile, isn't it? Besides, outside my home, I do not have 
control
Sandip> over the IP space used by the laptop to allocate one to
Sandip> the mobile.

If you don't prefer masquerading, you can also put your box in bridge
mode (i.e. act as network switch, instead of router) and use DHCP
server running at modem for allocating IP addresses. I assumed your modem
is doing PPP setup and has a DHCP server running. But this will be an
overkill, and plus I'm not aware of how this is going to work with
network profiles, i.e. disable bridging when not in home network. :)

Sandip> I am also not comfortable using static IP even for testing(I 
understand
Sandip> that it eliminates an unknown during testing), as my mobile is
Sandip> definitely easier to manage with DHCP.

How about IPv4-LL[1] (169.254/16 addresses) using Avahi[2], which
works fine in absence of DHCP server. It'll work fine in roaming
also. But your mobile phone should be capable of doing negotiation.

Sandip> Sharing the internet connection on my linux machine is not an 
issue. The
Sandip> additional pointers that I am looking at are mobile/wi-fi specific
Sandip> issues to watch out for. Connecting without encryption and static IP
Sandip> addresses is a problem I can solve. What after that?

hostapd[3] for implementing IEEE 802.1X network access control on your
wireless network. I've never setup any hostapd instance, so I'm not sure
if this is going to work or not.

All the best :)

References:
[1] - http://en.wikipedia.org/wiki/Zeroconf#Link-Local_IPv4_Addresses
[2] - http://www.avahi-project.org/
[3] - http://en.wikipedia.org/wiki/Hostapd

HTH
- -- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHxqoBHy+EEHYuXnQRAvtoAJ9rtUbGjjilVZiQgs+nmBKSkYOH4wCglVbW
p19jLVDW3V4+hNYtJXcNRkY=
=cys8
-END PGP SIGNATURE-

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Sandip Bhattacharya
Shakthi Kannan wrote:

> 1. Enable wireless on laptop with master mode. Disable encryption.
> 2. Configure static IP address on the phone, and test ping between
> phone and laptop (wireless).
> 
> To forward the requests between the wired and wireless connection, you
> will need to enable ip_forward on the laptop:
> 
>   sudo echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> and enable NAT operation. For example:
> 
>   sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


For this, I would need a separate private network between the laptop and
the mobile, isn't it? Besides, outside my home, I do not have control
over the IP space used by the laptop to allocate one to the mobile.

I am also not comfortable using static IP even for testing(I understand
that it eliminates an unknown during testing), as my mobile is
definitely easier to manage with DHCP.

> 
> I'd suggest that you google (or use any other search engine) for
> "Internet sharing with linux". For a start:
> http://thio4linux.wordpress.com/2007/10/14/share-internet-connection-on-linux/

Sharing the internet connection on my linux machine is not an issue. The
additional pointers that I am looking at are mobile/wi-fi specific
issues to watch out for. Connecting without encryption and static IP
addresses is a problem I can solve. What after that?



- Sandip


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Setting up your laptop/desktop as an access point

2008-02-28 Thread Shakthi Kannan
Hi,

--- On Thu, Feb 28, 2008 at 4:08 PM, Sandip Bhattacharya
<[EMAIL PROTECTED]> wrote:
|  so one option is to setup the laptop as an access point that the mobile
|  can use.
\--

Yes.

---
| I haven't gone
|  beyond "iwconfig eth1 node master".
\--

Where did it fail?

---
| I need DHCP
\--

To start with, you can test with static IP addresses.

---
| and preferably WPA.
\--

I'd suggest that you first test without encryption, and then you can
play with WPA.

1. Enable wireless on laptop with master mode. Disable encryption.
2. Configure static IP address on the phone, and test ping between
phone and laptop (wireless).

To forward the requests between the wired and wireless connection, you
will need to enable ip_forward on the laptop:

  sudo echo 1 > /proc/sys/net/ipv4/ip_forward

and enable NAT operation. For example:

  sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

I'd suggest that you google (or use any other search engine) for
"Internet sharing with linux". For a start:
http://thio4linux.wordpress.com/2007/10/14/share-internet-connection-on-linux/

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/