HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog

Wireless internet connection sharing

If you have a wireless internet device connected to your laptop, then you can use your laptop as an internet gate way in  your  LAN . Other computers can  access internet through your  laptop.  If your internet is fast you can  run a small office over that wify connection.

Let me explain how it possible.

So you need  two NIC’s in your computer  and running  Linux operating system.

Your Laptop configuration:

wlan0   -> This will be connected to public internet and you can access internet from your laptop
eth0   ->  This will connect to your lan or  switch , let us assign an ip for it

Now  perform the following commands.

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

# /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

# /sbin/iptables -A FORWARD -i wlan0 -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT

# /sbin/iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT

Now go to nearest computer and configure an ip address on range , make sure to use gateway ip . You can also use public name servers and

Now  access internet and surf the world. Enjoy it. If you need to use this  after a reboot , make sure the above iptable rules must be saved.

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar


Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional