Connection sharing done Right!

Innovation is the lifeblood of open source. Just check out this ability to readily share your wireless (GSM, CDMA whatever) with others in your vicinity.

In fact, I did something similar but with a wifi spot in a hotel. Let me paint the scenario:
a) Hotel lobby/conference area.
b) Wifi in hotel is paid – not free
c) Nominate one person to sign up for the non-free Wifi account in the hotel.
d) On that person whose machine is signed up with the Hotel Wifi, ensure that ip forwarding is enabled – from the terminal and as root type:

   echo "1" > /proc/sys/net/ipv4/ip_forward.
   

Determine this machine’s IP # as well.
e) Get all the others to connect with the Hotel’s wifi spot, but DO NOT SIGN UP.
f) On each machine, change the default route as follows:

   route del default
   route add default gw IP#OfTheMachineThatSignedUp
  

Viola, done. All the others can connect through the signed up machine now.

Advertisements

About harishpillay

father, husband, son, hacker, friend, human
This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to Connection sharing done Right!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s